Skip to content

Commit add4fcd

Browse files
committed
Add .gitattributes and update .gitignore
1 parent 33e370b commit add4fcd

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Auto detect text files and perform normalization
2+
* text=auto
3+
4+
*.rs text diff=rust
5+
*.toml text diff=toml
6+
Cargo.lock text

.gitignore

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
1-
/target
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
6+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
7+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8+
Cargo.lock
9+
10+
# These are backup files generated by rustfmt
11+
**/*.rs.bk
12+
13+
# MSVC Windows builds of rustc generate these, which store debugging information
14+
*.pdb
15+
16+
# main.rs used for testing
217
src/main.rs

0 commit comments

Comments
 (0)