zuoti_initer 0.1.1

rust做题的初始化模板, 支持函数风格,输入输出风格
Documentation
  • Coverage
  • 0%
    0 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 24.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.13 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 27s Average build duration of successful builds.
  • all releases: 27s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • liuluopeng/zuoti_initer
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • liuluopeng

这个小工具的作用:
在一个项目内做题. 一道题一个rs文件. 根据做题平台划分. 利用vs code的测试按钮运行编写的答案.

需要准备:

  • 创建一个rust项目.
  • 创建下列目录, 每个目录中创建mod.rs文件.
  • lib.rs 需要包含下列目录: leetcode luogu atcoder

你的做题项目需要这样:

├── src
│   ├── atcoder
│   │   └── mod.rs
│   ├── leetcode
│   │   ├── leetcode_1.rs
│   │   └── mod.rs
│   ├── luogu
│   │   ├── luogu_P2212.rs
│   │   └── mod.rs
|   |                    
│   ├── lib.rs
│   ├── main.rs
├── Cargo.lock
├── Cargo.toml

安装这个小工具:

cargo install zuoti_initer

使用:

在做题项目的目录下执行zuoti_initer 平台简写 题号

  • leetcode 简写: lc
  • luogu 简写: luogu
  • atcoder 简写: at

有更好的模板?

todo 下载本项目, 把你的模板放在template1.rs, 然后重新编译即可.