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
59,460 downloads per month
Used in 3 crates
(via magnus)
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