bitwise 0.1.1

Portable high-level bitwise manipulation algorithms.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate rustc_version;
use rustc_version::{version, version_meta, Channel};

fn main() {
    // Assert we haven't travelled back in time
    assert!(version().major >= 1);
    
    // Set cfg flags depending on release channel
    match version_meta().channel {
        Channel::Nightly => {
            println!("cargo:rustc-cfg=RUSTC_IS_NIGHTLY");
        },
        _ => {}
    };
}