ferroc 0.3.0

A fast & lock-free memory allocator library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    #[cfg(all(feature = "c", not(sys_alloc)))]
    generate_c_bindings();
}

#[cfg(all(feature = "c", not(sys_alloc)))]
fn generate_c_bindings() {
    let crate_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
    cbindgen::Builder::new()
        .with_crate(&crate_dir)
        .with_config(cbindgen::Config::from_root_or_default(crate_dir))
        .generate()
        .expect("failed to generate C bindings")
        .write_to_file("ferroc.h");
}