rust-cc-derive

Crates.iorust-cc-derive
lib.rsrust-cc-derive
version0.6.2
sourcesrc
created_at2023-03-14 21:01:17.668858
updated_at2024-11-12 05:21:43.828167
descriptionDerive macro for rust-cc
homepage
repositoryhttps://github.com/frengor/rust-cc
max_upload_size
id810146
size6,862
fren_gor (frengor)

documentation

README

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
}
Commit count: 281

cargo fmt