forked from M-Labs/rust-fatfs
Use alloc compiler feature only if "alloc" feature is active
This brings fatfs closer to working on stable Rust - only stable core-io crate is needed now. This change was merged previously to master in commit 64eec4b3ad3981ff1c3f5225897d26e5b427a4df
This commit is contained in:
parent
35ebf03405
commit
0792b167ae
@ -55,7 +55,7 @@
|
||||
#![crate_type = "lib"]
|
||||
#![crate_name = "fatfs"]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
#![cfg_attr(not(feature = "std"), feature(alloc))]
|
||||
#![cfg_attr(all(not(feature = "std"), feature = "alloc"), feature(alloc))]
|
||||
// Disable warnings to not clutter code with cfg too much
|
||||
#![cfg_attr(not(feature = "alloc"), allow(dead_code, unused_imports))]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user