brec 0.3.0

A flexible binary format for storing and streaming structured data as packets with CRC protection and recoverability from corruption. Built for extensibility and robustness.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Prepares the build environment to enable the `brec::generate!()` macro.
///
/// This function should be called from your `build.rs` script as follows:
///
/// ```rust
///     brec::build_setup();
/// ```
///
/// Calling this ensures that the required code generation step is executed during
/// the build process, allowing the `brec::generate!()` macro to function properly.
pub fn build_setup() {
    std::env::var("OUT_DIR").expect("OUT_DIR not set; required for brec crate");
    println!("cargo:rerun-if-changed=build.rs");
}