Registry / serialization / serde-codegen

serde-codegen

JSON →
library0.9.0rscratesunverified

Macros to auto-generate implementations for the serde framework.

# Cargo.toml [dependencies] serde_codegen = "0.9.0"
INSTALL
IMPORT
SIG · SERDE-CODEGEN
S
serde-codegen
serializationrustv0.9.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.

Serialize
use serde_codegen::Serialize;

Derives Serialize for a struct and serializes it to JSON.

use serde_codegen::Serialize; #[derive(Serialize)] struct Point { x: i32, y: i32, } let point = Point { x: 1, y: 2 }; let json = serde_json::to_string(&point).unwrap(); println!("{}", json);
Debug
Known issues
breakingThis crate is deprecated in favor of serde's built-in derive macros.
fix
Use serde::{Serialize, Deserialize} instead.
affects: >=0.9.0
Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
serde-codegen — cargo add serde-codegen · libregistry