Registry / serialization / serde-value

serde-value

JSON →
library0.7.0rscratesunverified

Serialization value trees.

# Cargo.toml [dependencies] serde-value = "0.7.0"
INSTALL
IMPORT
SIG · SERDE-VALUE
S
serde-value
serializationrustv0.7.0
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.

Value
✓ use serde_value::Value;

Convert any serializable type into a generic value tree.

use serde_value::Value; use serde::Serialize; #[derive(Serialize)] struct MyStruct { x: u32, y: String, } fn main() -> serde::__private::Result<()> { let s = MyStruct { x: 42, y: "hello".into() }; let value: Value = serde_value::to_value(&s)?; println!("{:?}", value); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
serde-value — cargo add serde-value · libregistry