| Crates.io | rust-cc-derive |
| lib.rs | rust-cc-derive |
| version | 0.6.2 |
| created_at | 2023-03-14 21:01:17.668858+00 |
| updated_at | 2024-11-12 05:21:43.828167+00 |
| description | Derive macro for rust-cc |
| homepage | |
| repository | https://github.com/frengor/rust-cc |
| max_upload_size | |
| id | 810146 |
| size | 6,862 |
Derive macros for the rust-cc crate.
#[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
}