一个使用rust编写的日历,可以打印某个月的日历
适合初学者学习此项目
A calendar command-line tool written in rust
Usage: rust-calendar [ARGUMENTS]
Arguments:
now Prints the calendar for the current month
debug_calendar Debug prints the calendar for the current month
help Show this help
year_month Print a calendar for a month and year,Usage:rust-calendar year_month YEAR MONTH
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