7 releases (4 breaking)
new 0.6.2 | Nov 12, 2024 |
---|---|
0.6.1 | Sep 17, 2024 |
0.6.0 | Aug 27, 2024 |
0.5.0 | Aug 6, 2024 |
0.0.0 | Mar 14, 2023 |
#71 in #gc
128 downloads per month
Used in rust-cc
7KB
122 lines
rust-cc-derive
Derive macros for the rust-cc
crate.
Example Usage
#[derive(Trace, Finalize)]
struct A<T: Trace + 'static> {
a: Cc<T>,
#[rust_cc(ignore)] // The b field won't be traced, safe to use!
b: i32,
}
#[derive(Trace, Finalize)]
#[rust_cc(unsafe_no_drop)] // Allows to implement Drop for B, unsafe to use! (see Trace docs)
struct B {
// fields
}
Dependencies
~0.3–0.8MB
~18K SLoC