[][src]Crate nanoserde

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!

nanoserde also almost do not use any generics, so build size is not going to be bloated with monomorphizated code.

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, DeToml, SerToml

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

Structs

DeBinErr
DeJsonErr
DeJsonState
DeRonErr
DeRonState
SerJsonState
SerRonState
TomlErr
TomlParser

Enums

DeJsonTok
DeRonTok
Toml
TomlTok

Traits

DeBin
DeJson
DeRon
SerBin
SerJson
SerRon

Derive Macros

DeBin
DeJson
DeRon
SerBin
SerJson
SerRon