Crate nanoserde

Source
Expand description

§nanoserde

Github Actions Crates.io version Documentation Discord chat

Data serialization library with zero dependencies. No more syn/proc_macro2/quote in the build tree!

The main difference with “serde” and the reason why “nanoserde” is possible: there is no intermediate data model For each serialisation datatype there is a special macro.

Derive macros available: DeJson, SerJson, DeBin, SerBin, DeRon, SerRon

nanoserde supports some serialization customisation with #[nserde()] attributes. For #[nserde(..)] supported attributes for each format check Features support matrix

Structs§

DeBinErr
The error message when failing to deserialize.
DeJsonErr
The error message when failing to deserialize a JSON string.
DeJsonState
The internal state of a JSON deserialization.
DeRonErr
The error message when failing to deserialize a Ron string.
DeRonState
The internal state of a RON deserialization.
SerJsonState
The internal state of a JSON serialization.
SerRonState
The internal state of a RON serialization.
TomlErr
The error message when failing to parse a TOML string.
TomlParser
A parser for TOML string values.

Enums§

DeBinErrReason
DeJsonErrReason
DeJsonTok
A JSON parsed token.
DeRonErrReason
DeRonTok
A RON parsed token.
Toml
A TOML value.
TomlTok
A TOML parsed token.

Traits§

DeBin
A trait for objects that can be deserialized from binary.
DeJson
A trait for objects that can be deserialized from JSON.
DeRon
A trait for objects that can be deserialized from the RON file format.
SerBin
A trait for objects that can be serialized to binary.
SerJson
A trait for objects that can be serialized to JSON.
SerRon
A trait for objects that can be serialized to the RON file format.

Derive Macros§

DeBin
DeJson
DeRon
SerBin
SerJson
SerRon