7 releases (4 breaking)

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

#74 in #garbage-collection

Download history 3/week @ 2024-10-11 115/week @ 2024-11-08 22/week @ 2024-11-15 5/week @ 2024-11-22 7/week @ 2024-11-29 6/week @ 2024-12-06 1/week @ 2024-12-13

603 downloads per month
Used in rust-cc

MIT/Apache

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

~320–780KB
~17K SLoC