Registry / serialization / miniserde

miniserde

JSON →
library0.1.45rscratesunverified

A minimal data structure serialization library with opposite design goals from Serde, focusing on simplicity and compile speed.

# Cargo.toml [dependencies] miniserde = "0.1.45"
INSTALL
IMPORT
SIG · MINISERDE
M
miniserde
serializationrustv0.1.45
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.

from_str
use miniserde::json::from_str;

Serializes and deserializes a struct to/from JSON using miniserde.

use miniserde::json; #[derive(miniserde::Serialize, miniserde::Deserialize)] struct Person { name: String, age: u32, } fn main() { let p = Person { name: "Alice".into(), age: 30 }; let json = json::to_string(&p); println!("{}", json); let p2: Person = json::from_str(&json).unwrap(); println!("{}", p2.name); }
Debug
Known issues
gotchaminiserde does not support all Serde features like attributes or complex enums; may not be a drop-in replacement.
fix
Check the miniserde documentation for supported types; use Serde if you need full flexibility.
affects: >=0.1.0
Upgrade
Version history
0.1.45latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
miniserde — cargo add miniserde · libregistry