diff options
author | 2015-11-12 17:58:42 +0100 | |
---|---|---|
committer | 2015-11-12 17:58:42 +0100 | |
commit | 7fdd8d298806d4517a63372f40ded47ad68f590c (patch) | |
tree | cabbfac5f32e0a81015f41ae668b8f0e26b66305 /src/lib.rs | |
parent | 79931f13b85faaf6ece1ce4a20f320e79e41fea6 (diff) | |
download | rust-x86-7fdd8d298806d4517a63372f40ded47ad68f590c.tar.gz rust-x86-7fdd8d298806d4517a63372f40ded47ad68f590c.tar.zst rust-x86-7fdd8d298806d4517a63372f40ded47ad68f590c.zip |
Embed no_std version of bitflags directly. Fixes #1.
For some reasons, earlier versions of rustc did not complain about
having a macro only library that was using std so it was never
an issue to use bitflags in no_std code.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,16 +1,16 @@ -#![feature(no_std)] +#![feature(no_std, core_str_ext, core_slice_ext)] #![feature(asm)] #![no_std] #![crate_name = "x86"] #![crate_type = "lib"] -#[cfg(test)] #[macro_use] -extern crate std; +mod bitflags; +#[cfg(test)] #[macro_use] -extern crate bitflags; +extern crate std; #[macro_use] extern crate raw_cpuid; |