Registry / other / macro-attr

macro-attr

JSON →
library0.2.0rscratesunverified

Provides the `macro_attr!` macro for custom macro-based attributes and derivations.

# Cargo.toml [dependencies] macro-attr = "0.2.0"
INSTALL
IMPORT
SIG · MACRO-ATTR
M
macro-attr
otherrustv0.2.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.

macro_attr
use macro_attr::macro_attr;

Applies custom derive macros using macro_attr.

use macro_attr::macro_attr; macro_attr! { #[derive(Clone, Debug)] struct MyStruct { value: i32, } }
Debug
Known issues
breakingDeprecated in favor of proc macros in modern Rust
fix
Use #[derive(...)] directly or proc macro crates
affects: >=0.2.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
macro-attr — cargo add macro-attr · libregistry