Fix building std_detect as a dependency of std (#1089)
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#![cfg_attr(feature = "std_detect_file_io", feature(vec_spare_capacity))]
|
||||
#![no_std]
|
||||
|
||||
#[cfg_attr(feature = "rustc-dep-of-std", allow(unused_extern_crates))]
|
||||
#[cfg(feature = "std_detect_file_io")]
|
||||
extern crate alloc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user