Registry / serialization / serde-plain

serde-plain

JSON →
library1.0.2rscratesunverified

A restricted plain text serializer for serde, supporting simple key-value and list formats.

# Cargo.toml [dependencies] serde_plain = "1.0.2"
INSTALL
IMPORT
SIG · SERDE-PLAIN
S
serde-plain
serializationrustv1.0.2
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.

to_string
✓ use serde_plain::to_string;

Serializes a struct to a plain text string using serde_plain.

use serde_plain::to_string; use serde::Serialize; #[derive(Serialize)] struct Point { x: i32, y: i32, } fn main() { let point = Point { x: 10, y: 20 }; let s = to_string(&point).unwrap(); println!("Serialized: {}", s); }
Debug
Known issues
gotchaOnly supports simple types; complex nested structures may fail.
fix
Use serde_json or serde_yaml for complex data.
affects: >=1.0.0
Upgrade
Version history
1.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
serde-plain — cargo add serde-plain · libregistry