flatc-fork 0.6.0+25.12.19-2026-02-06-03fffb2

Vendored executable of flatbuffer's `flatc` (maintained fork).
Documentation
//! Builds [flatbuffers] and provides the path to the built `flatc` in the
//! public API. Typically meant to be used by build scripts, but can be useful
//! otherwise if the project itself is using `flatc` during runtime.
//!
//! [flatbuffers]: https://github.com/google/flatbuffers

/// Path of the built `flatc` executable.
#[forbid(unsafe_code)]
pub fn flatc() -> &'static std::path::Path {
    if cfg!(windows) {
        std::path::Path::new(concat!(env!("OUT_DIR"), "\\bin\\flatc.exe"))
    } else {
        std::path::Path::new(concat!(env!("OUT_DIR"), "/bin/flatc"))
    }
}

#[test]
fn flatc_exists() {
    assert!(flatc().exists())
}