Registry / utility / auto-impl

auto-impl

JSON →
library1.3.0rscratesunverified

Automatically implement traits for common smart pointers and closures via derive macros.

# Cargo.toml [dependencies] auto_impl = "1.3.0"
INSTALL
IMPORT
SIG · AUTO-IMPL
A
auto-impl
utilityrustv1.3.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.

auto_impl
✓ use auto_impl::auto_impl;

Derives trait implementations for Box and Arc smart pointers.

use auto_impl::auto_impl; #[auto_impl(Box, Arc)] trait MyTrait { fn method(&self) -> i32; } struct MyStruct; impl MyTrait for MyStruct { fn method(&self) -> i32 { 42 } } let boxed: Box<dyn MyTrait> = Box::new(MyStruct); println!("{}", boxed.method());
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
2
Resources
auto-impl — cargo add auto-impl · libregistry