Registry / serialization / serde-tuple

serde-tuple

JSON →
library1.1.3rscratesunverified

De/serialize structs with named fields as array of values.

# Cargo.toml [dependencies] serde_tuple = "1.1.3"
INSTALL
IMPORT
SIG · SERDE-TUPLE
S
serde-tuple
serializationrustv1.1.3
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.

SerializeTuple
use serde_tuple;

Serializes struct fields as an array instead of an object.

use serde_tuple::Serialize_tuple; #[derive(Serialize_tuple)] struct Point { x: i32, y: i32, } fn main() { let point = Point { x: 1, y: 2 }; let json = serde_json::to_string(&point).unwrap(); println!("{}", json); // Output: [1,2] }
Debug
Known issues
gotchaRequires serde as a dependency and the derive macro feature.
fix
Add serde and serde_json to Cargo.toml.
affects: >=1.0.0
Upgrade
Version history
1.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
serde-tuple — cargo add serde-tuple · libregistry