Fix building std_detect as a dependency of std (#1089)

This commit is contained in:
Amanieu d'Antras
2021-03-18 20:36:40 +00:00
committed by GitHub
parent 7947cb8bac
commit 72dda3aae0
3 changed files with 15 additions and 4 deletions

View File

@@ -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;