Registry / serialization / serde
library1.0.228rscrates✓ verified 24d ago

A generic serialization/deserialization framework for Rust data structures.

# Cargo.toml [dependencies] serde = "1.0.228"
INSTALL
IMPORT
SIG · SERDE
S
serde
serializationrustv1.0.228
Install
4.3s avg
Import
Disk
16MB
Pass rate
6/ 6
Env Coverage6 / 6
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.229 · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
rust 1.801.853 runs
installs and imports cleanly · install 5.8s · import 0.000s · 15MB
default
rust 1.801.853 runs
installs and imports cleanly · install 2.8s · import 0.000s · 15MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Serialize
use serde::{Serialize, Deserialize};

Derives Serialize and Deserialize for a struct and serializes it to JSON.

use serde::{Serialize, Deserialize}; #[derive(Serialize, Deserialize)] struct Point { x: i32, y: i32, } fn main() { let point = Point { x: 1, y: 2 }; let serialized = serde_json::to_string(&point).unwrap(); println!("{}", serialized); }
Debug
Known issues
gotchaSerde derive macros require the `derive` feature (enabled by default).
fix
Add `serde = { version = "1.0", features = ["derive"] }` to Cargo.toml if you disable default features.
affects: >=1.0.0
Upgrade
Version history
1.0.228latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
12
Resources
serde — cargo add serde · libregistry