生锈的日历
一个使用rust编写的日历,可以打印某个月的日历
适合初学者学习此项目
```
A calendar command-line tool written in rust
Usage: rust-calendar [OPTIONS] [COMMAND]
Commands: now Now get the calendar for this month. date Usage: rust-calendar date [YEAR] [MONTH] Get the calendar for a month and year. debug-info Debug output information. help Print this message or the help of the given subcommand(s)
Options:
-t, --the-first-day-of-the-week
shell
cargo build
shell
cargo run
shell
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 0 0 0 0
0 0 0 0 0 0 0
注意事项:Rust编译器需要C语言编译器,否则无法正常运行。
如果编译速度很慢,卡在下载的地方了怎么办?
可以尝试更换cargo源来提升速度
更换Cargo源 - w3cschool