allocator_api 0.1.0

A copy of the unstable allocator_api (https://github.com/rust-lang/rust/issues/32838) Usable with stable rust, but requires 1.25.
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate rustc_version;

use rustc_version::{version, Version};

fn main() {
    if version().unwrap() >= Version::parse("1.26.0-nightly").unwrap() {
        println!("cargo:rustc-cfg=feature=\"i128\"");
        println!("cargo:rustc-cfg=feature=\"fused\"");
    }
}