1 stable release
1.0.0 | Jan 16, 2021 |
---|
#1010 in Procedural macros
6KB
&nut self
It makes your code nut.
Usage
Get nut_self
:
[dependencies]
nut_self = "1.0"
Use nut_self
:
use nut_self::nut;
nut! {
fn main() {
let nut count = 0;
println!("nut count: {}", count);
count += 1;
println!("nut count: {}", count);
}
}
See example
directory for a more nutty example.
Run it with cargo run --package example
.
Credits
Thanks to jan Pontaoski for making the typo.