cjson-bindings 0.5.0

Safe Rust bindings for the cJSON library - a lightweight JSON parser in C with support for JSON Pointer (RFC6901), JSON Patch (RFC6902), and JSON Merge Patch (RFC7386)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    // Only link to cJSON libraries when building tests (with std feature)
    #[cfg(feature = "std")]
    {
        // Add search path for cJSON library
        println!("cargo:rustc-link-search=/usr/lib/x86_64-linux-gnu");
        
        // Link to cJSON library
        println!("cargo:rustc-link-lib=cjson");
        println!("cargo:rustc-link-lib=cjson_utils");
    }
}