Crates.io | rust-calendar |
lib.rs | rust-calendar |
version | 0.1.2 |
source | src |
created_at | 2023-01-01 11:31:55.636021 |
updated_at | 2023-01-03 05:57:34.826695 |
description | A calendar command-line tool written in rust |
homepage | |
repository | https://github.com/mogmoug/rust-calendar |
max_upload_size | |
id | 748814 |
size | 28,171 |
生锈的日历
一个使用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 <THE_FIRST_DAY_OF_THE_WEEK>
The first day of the week.Sunday(0) or Monday(1) [default: 0]
-h, --help
Print help information
-V, --version
Print version information
cargo build
cargo run
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