| Crates.io | nut_self |
| lib.rs | nut_self |
| version | 1.0.0 |
| created_at | 2021-01-16 15:13:35.486362+00 |
| updated_at | 2021-01-16 15:13:35.486362+00 |
| description | Makes your code nut. |
| homepage | |
| repository | https://github.com/yusdacra/nut_self |
| max_upload_size | |
| id | 342814 |
| size | 11,258 |
It makes your code nut.
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.
Thanks to jan Pontaoski for making the typo.