Registry / utility / amplify-derive

amplify-derive

JSON →
library4.0.1rscratesunverified

Powerful derivation macros for Rust, part of the Amplify library ecosystem.

# Cargo.toml [dependencies] amplify_derive = "4.0.1"
INSTALL
IMPORT
SIG · AMPLIFY-DERIVE
A
amplify-derive
utilityrustv4.0.1
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.

Display
use amplify_derive::Display;

Derives a custom Display implementation.

use amplify_derive::Display; #[derive(Display)] #[display("MyStruct {{ field: {} }}", "self.field")] struct MyStruct { field: u32, } let s = MyStruct { field: 42 }; println!("{}", s);
Debug
Known issues
gotchaRequires the `derive` feature flag to be enabled.
fix
Add `features = ["derive"]` to your Cargo.toml dependency.
affects: >=4.0.0
Upgrade
Version history
4.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
amplify-derive — cargo add amplify-derive · libregistry