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

#1160 in Procedural macros

Download history 15725/week @ 2024-05-04 16373/week @ 2024-05-11 12362/week @ 2024-05-18 12024/week @ 2024-05-25 13757/week @ 2024-06-01 26444/week @ 2024-06-08 20174/week @ 2024-06-15 12701/week @ 2024-06-22 13674/week @ 2024-06-29 11820/week @ 2024-07-06 17622/week @ 2024-07-13 12337/week @ 2024-07-20 22037/week @ 2024-07-27 11111/week @ 2024-08-03 11709/week @ 2024-08-10 12428/week @ 2024-08-17

59,460 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

~275–730KB
~17K SLoC