yyjson-sys 0.1.0

yyjson-sys is a low-level Rust FFI binding for yyjson, a high-performance JSON parsing library. It provides direct access to yyjson's C API. This crate is intended for building higher-level abstractions or integrating yyjson with Rust projects that require minimal overhead.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 
 This file is used to test the compatibility of ANSI C. 
 It should be able to compile successfully in strict ANSI C environments.
*/

#include "yyjson.c"

int main(void) {
    yyjson_mut_doc *mdoc = yyjson_mut_doc_new(NULL);
    yyjson_mut_val *root = yyjson_mut_int(mdoc, 0);
    yyjson_mut_doc_set_root(mdoc, root);
    yyjson_mut_doc_free(mdoc);
    return 0;
}