diff options
author | 2016-06-27 18:01:38 -0700 | |
---|---|---|
committer | 2016-06-29 22:48:09 -0700 | |
commit | 7234146529386a0d59817055c847b5e906ab605c (patch) | |
tree | 1492c609b6c80676f0b7a5ab330ccc7df9a02fb6 | |
parent | dd3bb0fca40118e52c4584c11f0d010410da4a0c (diff) | |
download | rust-x86-7234146529386a0d59817055c847b5e906ab605c.tar.gz rust-x86-7234146529386a0d59817055c847b5e906ab605c.tar.zst rust-x86-7234146529386a0d59817055c847b5e906ab605c.zip |
Add `::current` module for whichever of `bits{32,64}` is active
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -22,6 +22,13 @@ pub mod bits32; pub mod bits64; pub mod shared; +pub mod current { + #[cfg(target_arch="x86")] + pub use bits32::*; + #[cfg(target_arch="x86_64")] + pub use bits64::*; +} + mod std { pub use core::fmt; pub use core::ops; |