···11-# Created by https://www.toptal.com/developers/gitignore/api/c,ninja
22-# Edit at https://www.toptal.com/developers/gitignore?templates=c,ninja
11+# Created by https://www.toptal.com/developers/gitignore/api/rust
22+# Edit at https://www.toptal.com/developers/gitignore?templates=rust
3344-### C ###
55-# Prerequisites
66-*.d
77-88-# Object files
99-*.o
1010-*.ko
1111-*.obj
1212-*.elf
44+### Rust ###
55+# Generated by Cargo
66+# will have compiled files and executables
77+debug/
88+target/
1391414-# Linker output
1515-*.ilk
1616-*.map
1717-*.exp
1818-1919-# Precompiled Headers
2020-*.gch
2121-*.pch
2222-2323-# Libraries
2424-*.lib
2525-*.a
2626-*.la
2727-*.lo
2828-2929-# Shared objects (inc. Windows DLLs)
3030-*.dll
3131-*.so
3232-*.so.*
3333-*.dylib
1010+# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
1111+# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
1212+Cargo.lock
34133535-# Executables
3636-*.exe
3737-*.out
3838-*.app
3939-*.i*86
4040-*.x86_64
4141-*.hex
1414+# These are backup files generated by rustfmt
1515+**/*.rs.bk
42164343-# Debug files
4444-*.dSYM/
4545-*.su
4646-*.idb
1717+# MSVC Windows builds of rustc generate these, which store debugging information
4718*.pdb
48194949-# Kernel Module Compile Results
5050-*.mod*
5151-*.cmd
5252-.tmp_versions/
5353-modules.order
5454-Module.symvers
5555-Mkfile.old
5656-dkms.conf
5757-5858-### Ninja ###
5959-.ninja_deps
6060-.ninja_log
6161-6262-# End of https://www.toptal.com/developers/gitignore/api/c,ninja
2020+# End of https://www.toptal.com/developers/gitignore/api/rust
6321.vscode/