tson 0.1.2

Terse JSON - a compact binary JSON format for microcontrollers and constrained environments
Documentation
1
2
3
4
5
6
7
8
9
10
// Build script for the optional `nodejs` (napi-rs v3) binding.
//
// napi-rs v3 requires `napi_build::setup()` to wire up Node-API symbol
// resolution at build time. It only runs when the `nodejs` feature is enabled;
// for every other build (the default library, `python`, `no_std`, etc.) this
// is a no-op, so the core crate stays free of any Node toolchain dependency.
fn main() {
    #[cfg(feature = "nodejs")]
    napi_build::setup();
}