From 1cc2930a7b69aaa7606ffe4d5d4e2e2ffe681893 Mon Sep 17 00:00:00 2001 From: chrysn Date: Wed, 31 Jan 2024 12:19:08 +0100 Subject: [PATCH] makefiles/rust: Document CARGO_OPTIONS make variable --- makefiles/cargo-settings.inc.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makefiles/cargo-settings.inc.mk b/makefiles/cargo-settings.inc.mk index c3709a221e..19599c22fc 100644 --- a/makefiles/cargo-settings.inc.mk +++ b/makefiles/cargo-settings.inc.mk @@ -29,3 +29,10 @@ CARGO_TARGET_DIR = $(BINDIR)/target # are stored in the `release` directory. User-defined profiles are stored in a # directory with the same name as the profile". CARGO_LIB = $(CARGO_TARGET_DIR)/$(RUST_TARGET)/$(patsubst test,debug,$(patsubst dev,debug,$(patsubst bench,release,${CARGO_PROFILE})))/lib$(APPLICATION_RUST_MODULE).a + +# Options passed into all Cargo commands, in particular to the build command. +# +# Most of these are populated by RIOT modules that are backed by Rust. Popular +# options added by the user are `-Zbuild-std=core` (only available on nightly) +# to apply LTO and profile configuration to the core library. +CARGO_OPTIONS ?=