#template #gitignore #template-generator #pdb #debugging #api #locking #com

bin+lib gitignore-template-generator

Generate templates for .gitignore files

1 unstable release

Uses new Rust 2024

new 0.1.0 Apr 9, 2025

#210 in Template engine

MIT/Apache

14KB

gitignore-template-generator

github crates.io crates.io

A binary crate to generate .gitignore template

Installation

Current release: 0.1.0

cargo install gitignore-template-generator

Usage

Examples:

Template for rust project:

$ gitignore-template-generator rust
# Created by https://www.toptal.com/developers/gitignore/api/rust
# Edit at https://www.toptal.com/developers/gitignore?templates=rust

### 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.org/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

# End of https://www.toptal.com/developers/gitignore/api/rust

Development

Install cargo-make, dev tools and build the package:

./bootstrap.sh

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

Dependencies

~9–17MB
~306K SLoC