Registry / serialization / canonical-derive

canonical-derive

JSON →
library0.7.0rscratesunverified

The automatic derivation of Canon for structs and enums.

# Cargo.toml [dependencies] canonical_derive = "0.7.0"
INSTALL
IMPORT
SIG · CANONICAL-DERIVE
C
canonical-derive
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.

Canon
use canonical_derive::Canon;

Derive the Canon trait for a struct.

use canonical_derive::Canon; #[derive(Canon)] struct Point { x: i32, y: i32, } fn main() { let p = Point { x: 1, y: 2 }; println!("Point: {:?}", p); }
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
13 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
canonical-derive — cargo add canonical-derive · libregistry