pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/rust
Module Name: pkgsrc
Committed By: riastradh
Date: Tue Nov 10 13:42:40 UTC 2026
Modified Files:
pkgsrc/lang/rust: cargo.mk
Log Message:
lang/rust/cargo.mk: Set CARGO_BUILD_JOBS=${_MAKE_JOBS_N} in MAKE_ENV.
This fixes excessive parallelism in py-maturin, anything that uses
Python setuptools-rust, and generally anything that assembles its own
cargo(1) command line instead of using ${CARGO_ARGS}.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 pkgsrc/lang/rust/cargo.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/rust/cargo.mk
diff -u pkgsrc/lang/rust/cargo.mk:1.49 pkgsrc/lang/rust/cargo.mk:1.50
--- pkgsrc/lang/rust/cargo.mk:1.49 Tue Nov 10 11:25:39 2026
+++ pkgsrc/lang/rust/cargo.mk Tue Nov 10 13:42:40 2026
@@ -1,4 +1,4 @@
-# $NetBSD: cargo.mk,v 1.49 2026/11/10 11:25:39 jperkin Exp $
+# $NetBSD: cargo.mk,v 1.50 2026/11/10 13:42:40 riastradh Exp $
#
# Common logic that can be used by packages that depend on cargo crates
# from crates.io. This lets existing pkgsrc infrastructure fetch and verify
@@ -110,6 +110,15 @@ CARGO_INSTALL_ARGS?= install --path . --
MAKE_ENV+= RUSTFLAGS=${RUSTFLAGS:Q}
ALL_ENV+= CARGO_HOME=${WRKDIR}
+# Not everything uses ${CARGO_ARGS} to pass -j${_MAKE_JOBS_N} to cargo,
+# e.g. Python setuptools-rust assembles its own cargo(1) invocation,
+# but generally Cargo will respect CARGO_BUILD_JOBS the same way as -j
+# or the build.jobs setting in Cargo.toml.
+#
+# https://web.archive.org/web/20261031232318/https://doc.rust-lang.org/cargo/reference/config.html#buildjobs
+#
+ALL_ENV+= CARGO_BUILD_JOBS=${_MAKE_JOBS_N}
+
.if !target(do-build)
do-build: do-cargo-build
.endif
Home |
Main Index |
Thread Index |
Old Index