---
title: "RUST .GITIGNORE"
category: SNIPPETS
date: 2026-11-04
version: "1.0"
format: "TXT"
size: "779 B"
license: "CC0-1.0"
sha256: 26431918e449693f4385438e3955a1e078dbc9a4c78e68d8e6caf7a21647b1ff
source: "https://github.com/github/gitignore/blob/main/Rust.gitignore"
download: "https://original.wales/files/snippets/rust.gitignore"
tags: ["GITIGNORE","GIT","RUST","OFFICIAL"]
summary: "GitHub’s official Rust .gitignore template."
canonical: "https://original.wales/files/gitignore-rust/"
---

# RUST .GITIGNORE

GitHub’s official Rust .gitignore template.

## TEXT

# Generated by Cargo
# will have compiled files and executables
debug
target

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Generated by cargo mutants
# Contains mutation testing data
**/mutants.out*/

# rustc will dump stack traces when hitting an internal compiler error to PWD
rustc-ice-*.txt

# RustRover
#  JetBrains specific template is maintained in a separate JetBrains.gitignore that can
#  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
#  and can be added to the global gitignore or merged into this file.  For a more nuclear
#  option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

## SOURCE

https://github.com/github/gitignore/blob/main/Rust.gitignore
