hs-bindgen-attribute 0.9.2

Handy macro to generate C-FFI bindings from Rust to Haskell
Documentation
1
2
3
4
5
6
7
8
9
//! Enable proc-macro diagnostics by default when toolchain is set on nightly!

fn main() {
    if let Ok(v) = rustc_version::version_meta() {
        if v.channel == rustc_version::Channel::Nightly {
            println!("cargo:rustc-cfg=DIAGNOSTICS");
        }
    }
}