6 releases (breaking)

0.6.0 Jul 29, 2023
0.4.1 Mar 28, 2023
0.4.0 Feb 11, 2023
0.3.0 Dec 24, 2022
0.1.0 Feb 26, 2022

#1327 in Procedural macros

Download history 11009/week @ 2024-07-22 22260/week @ 2024-07-29 11419/week @ 2024-08-05 11703/week @ 2024-08-12 12402/week @ 2024-08-19 12794/week @ 2024-08-26 11613/week @ 2024-09-02 12532/week @ 2024-09-09 11298/week @ 2024-09-16 11827/week @ 2024-09-23 17500/week @ 2024-09-30 18237/week @ 2024-10-07 18657/week @ 2024-10-14 13998/week @ 2024-10-21 20016/week @ 2024-10-28 14464/week @ 2024-11-04

67,567 downloads per month
Used in 3 crates (via magnus)

MIT license

24KB
318 lines

Derive and proc macros for magnus.

#[magnus::wrap(class = "RbPoint", free_immediately, size)]
struct Point {
    x: isize,
    y: isize,
}

#[magnus::init]
fn init() -> Result<(), magnus::Error> {
    magnus::define_class("RbPoint", magnus::class::object())?;
    Ok(())
}

Dependencies

~245–690KB
~17K SLoC