Skip to content

Commit

Permalink
rust_riotmodules: pub use instead of extern crate
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Jul 10, 2022
1 parent 08939cd commit 68985aa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sys/rust_riotmodules/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#![no_std]

// As we're pulling all crates in only for their side effects of having symbols (be that to place
// them in XFA symbols or to make them available for C) all these crates have to be extern-crate'd
// to be pulled in because they are not used on the laguage level.
// Crates in here are pub used in case they make anything accessible to Rust applications directly;
// they can then access the crates as `rust_riotmodules::lsm303agr` or similar.
//
// (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

#[cfg(feature = "riot-module-lsm303agr")]
extern crate riot_module_lsm303agr;
pub use riot_module_lsm303agr as lsm303agr;

#[cfg(feature = "riot-module-shell-democommands")]
extern crate riot_module_shell_democommands;
pub use riot_module_shell_democommands as democommands;

0 comments on commit 68985aa

Please sign in to comment.