Registry / utility / gc-derive

gc-derive

JSON →
library0.5.0rscratesunverified

Garbage collector derive plugin for rust-gc, enabling automatic trace implementation.

# Cargo.toml [dependencies] gc_derive = "0.5.0"
INSTALL
IMPORT
SIG · GC-DERIVE
G
gc-derive
utilityrustv0.5.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.

Gc
use gc_derive::Gc;

Deriving Gc for a struct to enable garbage collection

use gc_derive::Gc; #[derive(Gc)] struct MyStruct { value: i32, } fn main() { let obj = MyStruct { value: 42 }; println!("Created GC-managed struct"); }
Debug
Known issues
gotchaRequires nightly Rust for garbage collection features
fix
Use nightly toolchain: rustup default nightly
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gc-derive — cargo add gc-derive · libregistry