forked from RIOT-OS/RIOT
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust_riotmodules: pub use instead of extern crate
See-Also: RIOT-OS#16833 (comment)
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |