diff --git a/sys/rust_riotmodules/Cargo.toml b/sys/rust_riotmodules/Cargo.toml index 45fe52acbe..b8de794176 100644 --- a/sys/rust_riotmodules/Cargo.toml +++ b/sys/rust_riotmodules/Cargo.toml @@ -12,3 +12,8 @@ publish = false riot-module-lsm303agr = { path = "../../drivers/lsm303agr", optional = true } riot-module-shell-democommands = { path = "../../sys/shell/democommands", optional = true } + +[features] +# This feature is just there so that rust_riotmodules_standalone can use its +# _all; see documentation there. +_all = [ "riot-module-lsm303agr", "riot-module-shell-democommands"] diff --git a/sys/rust_riotmodules_standalone/Cargo.lock b/sys/rust_riotmodules_standalone/Cargo.lock index de52523771..17d47da24b 100644 Binary files a/sys/rust_riotmodules_standalone/Cargo.lock and b/sys/rust_riotmodules_standalone/Cargo.lock differ diff --git a/sys/rust_riotmodules_standalone/Cargo.toml b/sys/rust_riotmodules_standalone/Cargo.toml index b5077eb24d..61d3139873 100644 --- a/sys/rust_riotmodules_standalone/Cargo.toml +++ b/sys/rust_riotmodules_standalone/Cargo.toml @@ -19,3 +19,11 @@ codegen-units = 1 riot-wrappers = { version = "0.8", features = [ "set_panic_handler" ] } rust_riotmodules = { path = "../rust_riotmodules" } + +[features] +# By having this explicit feature (comapred to what is enabled by the build +# system as `--features rust_riotmodules/foo`), all possible dependencies are +# visible to `cargo update` and in `Cargo.lock. This should not be enabled for +# compilation, as the modules behind it likely have their own RIOT modules they +# need enabled. +_all = [ "rust_riotmodules/_all" ]