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
67,567 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
~245–690KB
~17K SLoC