Registry / serialization / nanoserde

nanoserde

JSON →
library0.2.1rscratesunverified

Zero-dependency serialization library supporting Binary, JSON, RON, and TOML formats.

# Cargo.toml [dependencies] nanoserde = "0.2.1"
INSTALL
IMPORT
SIG · NANOSERDE
N
nanoserde
serializationrustv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SerJson
use nanoserde::SerJson;

Serialize a struct to JSON using derive macro.

use nanoserde::SerJson; #[derive(SerJson)] struct Point { x: f64, y: f64, } fn main() { let p = Point { x: 1.0, y: 2.0 }; let json = SerJson::serialize_json(&p); println!("{}", json); }
Debug
Known issues
gotchaDerive macros require the `derive` feature (enabled by default).
fix
Ensure `nanoserde` is added with default features or explicitly enable `derive`.
affects: >=0.2.0
Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
nanoserde — cargo add nanoserde · libregistry