Skip to main content

Crate nextjson_derive

Crate nextjson_derive 

Source
Expand description

Zero-dependency derive macros for nextjson.

Implemented entirely with the standard proc_macro API: no syn, no quote, no proc-macro2. The input TokenStream is parsed by a hand-written recursive-descent parser into a small AST, and the output is generated as text and re-parsed.

Derive Macros§

NsonDeserialize
Derive NextJson’s native decoding contract.
NsonSerialize
Derive NextJson’s native serialization contract and compile-time schema.