rust-calendar

生锈的日历
一个使用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.Sunday(0) or Monday(1) [default: 0] -h, --help Print help information -V, --version Print version information ```

编译

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的相关链接

  1. 在 Windows 上通过 Rust 进行开发的概述 | Microsoft Learn
  2. 在 Windows 上针对 Rust 设置开发环境 | Microsoft Learn
  3. 知乎 windows10 安装rust
  4. win10安装rust的开发环境完整教程(gcc编译器和vc++编译器)| 博客园
  5. 菜鸟教程Windows Rust 环境搭建
  6. 知乎Rust的安装(Mac系统)
  7. 知乎在国内用 mac 安装 Rust
  8. Linux上安装rust - 知乎
  9. 如何在linux上安装rust语言 - 知乎
  10. 如何在 Ubuntu 和其它的 Linux 发行版安装 Rust 和 Cargo - linux中国
  11. 在Termux(Android)上安装Rust | Level Up

注意事项:Rust编译器需要C语言编译器,否则无法正常运行。

如果编译速度很慢,卡在下载的地方了怎么办?
可以尝试更换cargo源来提升速度
更换Cargo源 - w3cschool