Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (56861743dc23e6f437c2eb1a9034b3f57cab5511)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (56861743dc23e6f437c2eb1a9034b3f57cab5511)
  • Date: Tue, 22 Oct 2024 02:12:18 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

devel/rust/BUILD | 8 ++++++++
devel/rust/CONFIGURE | 25 +++++++++++++++++++++++++
devel/rust/HISTORY | 3 +++
3 files changed, 36 insertions(+)

New commits:
commit 56861743dc23e6f437c2eb1a9034b3f57cab5511
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>

devel/rust: added option to build tools

diff --git a/devel/rust/BUILD b/devel/rust/BUILD
index c982634..65184c5 100755
--- a/devel/rust/BUILD
+++ b/devel/rust/BUILD
@@ -49,6 +49,14 @@ sed -e "s;profile =.*;profile = 'user';" \
-e '/^\[llvm\]/aninja = false' \
-e '/^\[build\]/aoptimized-compiler-builtins = false' -i config.toml &&

+ if list_find "${RUST_TOOLS}" "none"; then
+ sed '/^\[build\]/atools = \[\]' -i config.toml
+elif list_find "${RUST_TOOLS}" "default"; then
+ sed '/^\[build\]/atools = \[ "cargo", "rustdoc" \]' -i config.toml
+else
+ sed "/^\[build\]/atools = \[ \"${RUST_TOOLS// /\", \"}\" ]" -i config.toml
+fi &&
+
export CARGO_HOME="$SOURCE_DIRECTORY/cargo_home" &&

python3 ./x.py build --config="${SOURCE_DIRECTORY}/config.toml" \
diff --git a/devel/rust/CONFIGURE b/devel/rust/CONFIGURE
new file mode 100755
index 0000000..cc16a5e
--- /dev/null
+++ b/devel/rust/CONFIGURE
@@ -0,0 +1,25 @@
+. "${GRIMOIRE}/config_query_multi.function" &&
+
+local AVAILABLE_TOOLS="cargo
+ clippy
+ rustdoc
+ rustfmt
+ rust-analyzer
+ rust-analyzeri-proc-macro-srv
+ analysis
+ src
+ wasm-component-ld
+ miri
+ cargo-miri" &&
+
+config_query_multi RUST_TOOLS \
+ "which Vulkan drivers to build" \
+ default all none $AVAILABLE_TOOLS &&
+
+if list_find "${RUST_TOOLS}" "all"; then
+ RUST_TOOLS="${AVAILABLE_TOOLS}"
+elif list_find "${RUST_TOOLS}" "none"; then
+ RUST_TOOLS="none"
+fi &&
+
+RUST_TOOLS="${RUST_TOOLS# }"
diff --git a/devel/rust/HISTORY b/devel/rust/HISTORY
index a6623da..14b549d 100644
--- a/devel/rust/HISTORY
+++ b/devel/rust/HISTORY
@@ -1,3 +1,6 @@
+2024-10-21 Pavel Vinogradov <public AT sourcemage.org>
+ * BUILD, CONFIGURE: added option to build tools
+
2024-10-17 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS: version 1.82.0
* patches/0001-libressl-3.4.x.patch: updated


  • [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (56861743dc23e6f437c2eb1a9034b3f57cab5511), Pavel Vinogradov, 10/21/2024

Archive powered by MHonArc 2.6.24.

Top of Page