1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

rust_riotmodules: pub use instead of extern crate

See-Also: https://github.com/RIOT-OS/RIOT/pull/16833#issuecomment-1071243210
This commit is contained in:
chrysn 2022-06-11 03:07:26 +02:00
parent 08939cda3b
commit 68985aa6be

View File

@ -1,13 +1,14 @@
#![no_std] #![no_std]
// As we're pulling all crates in only for their side effects of having symbols (be that to place // Crates in here are pub used in case they make anything accessible to Rust applications directly;
// them in XFA symbols or to make them available for C) all these crates have to be extern-crate'd // they can then access the crates as `rust_riotmodules::lsm303agr` or similar.
// to be pulled in because they are not used on the laguage level. //
// (Also, if they were not pub used, they'd need to be extern crate'd).
// This list should be as auto-generated / -maintained as the one in Cargo.toml // This list should be as auto-generated / -maintained as the one in Cargo.toml
#[cfg(feature = "riot-module-lsm303agr")] #[cfg(feature = "riot-module-lsm303agr")]
extern crate riot_module_lsm303agr; pub use riot_module_lsm303agr as lsm303agr;
#[cfg(feature = "riot-module-shell-democommands")] #[cfg(feature = "riot-module-shell-democommands")]
extern crate riot_module_shell_democommands; pub use riot_module_shell_democommands as democommands;