2个版本
0.1.1 | 2023年4月30日 |
---|---|
0.1.0 | 2023年4月30日 |
#21 在 #cargo-lock
8KB
gitignore-generator
使用GitHub API生成.gitignore
文件的简单方法。
用法
❯ cargo install gitignore-generator
# binary is installed
❯ gitignore-generator
? Pick your language/template: › [Page 1/4]
❯ AL
Actionscript
Ada
Agda
Android
AppEngine
AppceleratorTitanium
ArchLinuxPackages
Autotools
C
C++
..
..
✔ Pick your language/template: · Rust
# Generated by Cargo
# will have compiled files and executables
debug/
target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.net.cn/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
File already exists. Do you want to (a)ppend, (o)verwrite, or (i)gnore?
o
检查生成的忽略文件
❯ cat gitignore.demo
# Generated by Cargo
# will have compiled files and executables
debug/
target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.net.cn/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
依赖
~6–15MB
~256K SLoC