Registry / serialization / serde-xdr

serde-xdr

JSON →
library0.6.0rscratesunverified

XDR serialization and deserialization for Serde, enabling encoding/decoding in the XDR format.

# Cargo.toml [dependencies] serde-xdr = "0.6.0"
INSTALL
IMPORT
SIG · SERDE-XDR
S
serde-xdr
serializationrustv0.6.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.

to_writer
use serde_xdr::to_writer;

Serializes a struct to XDR format.

use serde_xdr::to_writer; use serde::Serialize; #[derive(Serialize)] struct Point { x: i32, y: i32 } fn main() { let point = Point { x: 10, y: 20 }; let mut output = Vec::new(); to_writer(&mut output, &point).unwrap(); println!("{:?}", output); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
serde-xdr — cargo add serde-xdr · libregistry