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

Download history 183/week @ 2024-07-29 126/week @ 2024-08-05 3/week @ 2024-08-12 175/week @ 2024-08-26 232/week @ 2024-09-16 4/week @ 2024-09-23 26/week @ 2024-09-30 9/week @ 2024-10-07 128/week @ 2024-11-11

128 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

~0.3–0.8MB
~18K SLoC