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

#1030 in Procedural macros

Download history 17233/week @ 2024-01-29 17107/week @ 2024-02-05 12836/week @ 2024-02-12 13121/week @ 2024-02-19 11181/week @ 2024-02-26 10184/week @ 2024-03-04 15016/week @ 2024-03-11 10315/week @ 2024-03-18 11051/week @ 2024-03-25 10710/week @ 2024-04-01 10708/week @ 2024-04-08 11308/week @ 2024-04-15 13719/week @ 2024-04-22 16123/week @ 2024-04-29 16384/week @ 2024-05-06 14888/week @ 2024-05-13

61,985 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

~310–770KB
~18K SLoC