1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/rust_riotmodules/Cargo.toml
chrysn a5c9ac2e95 rust: Make dependencies visible
The Cargo.lock of rust_riotmodules_standalone should explicitly list all
versions of software that would ever be pulled in by enabling RIOT
modules backed by a Rust crate. That way, the Cargo.lock file will not
spontaneously change because the software is being built with a
different set of modules enabled.

This did not happen before, because while the optional dependencies
could all be selected on the command line, they were not visible as
possible features to `cargo update`, and were thus not encoded in the
Cargo.lock file.
2024-03-20 19:46:11 +10:00

20 lines
660 B
TOML

[package]
name = "rust_riotmodules"
version = "0.1.0"
authors = ["Christian Amsüss <chrysn@fsfe.org>"]
edition = "2021"
publish = false
[dependencies]
# The list contains all modules available in RIOT, and should eventually be
# autogenerated (or at least automatically checked for consistency).
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"]