1 个稳定版本
1.0.0 | 2021年1月16日 |
---|
#905 在 过程宏
6KB
&nut self
它让你的代码更加“nut”。
使用方法
获取 nut_self
[dependencies]
nut_self = "1.0"
使用 nut_self
use nut_self::nut;
nut! {
fn main() {
let nut count = 0;
println!("nut count: {}", count);
count += 1;
println!("nut count: {}", count);
}
}
查看 example
目录中的更“nut”的示例。使用以下命令运行它:cargo run --package example
。
致谢
感谢 jan Pontaoski 指出拼写错误。