flatbuffers 23.5.26

Official FlatBuffers Rust runtime library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use rustc_version::{version_meta, Channel};

fn main() {
    let version_meta = version_meta().unwrap();

    // To use nightly features we declare this and then we can use
    // #[cfg(nightly)]
    // for nightly only features
    if version_meta.channel == Channel::Nightly {
        println!("cargo:rustc-cfg=nightly")
    }
}