]> git.lizzy.rs Git - rust.git/blobdiff - .gitignore
Auto merge of #92294 - Kobzol:rustdoc-meta-kind, r=GuillaumeGomez
[rust.git] / .gitignore
index 71cf88f79e67b674ecf7abc54035fabaa4c84539..87437a16fb392c2b09e3fca8beea5a3997f27243 100644 (file)
@@ -1,25 +1,78 @@
+# This file should only ignore things that are generated during a `x.py` build,
+# generated by common IDEs, and optional files controlled by the user that
+# affect the build (such as config.toml).
+# In particular, things like `mir_dump` should not be listed here; they are only
+# created during manual debugging and many people like to clean up instead of
+# having git ignore such leftovers. You can use `.git/info/exclude` to
+# configure your local ignore list.
 
-# Created by https://www.gitignore.io/api/rust
+## File system
+.DS_Store
+desktop.ini
+
+## Editor
+*.swp
+*.swo
+Session.vim
+.cproject
+.idea
+*.iml
+.vscode
+.project
+.favorites.json
+.settings/
+
+## Tool
+.valgrindrc
+.cargo
+# Included because it is part of the test case
+!/src/test/run-make/thumb-none-qemu/example/.cargo
+
+## Configuration
+/config.toml
+/Makefile
+config.mk
+config.stamp
+no_llvm_build
 
-### Rust ###
-# Generated by Cargo
-# will have compiled files and executables
+## Build
+/dl/
+/doc/
+/inst/
+/llvm/
+/mingw-build/
+/build/
+/dist/
+/unicode-downloads
 /target
-tests/cargo-fmt/**/target
+/src/tools/x/target
+# Generated by compiletest for incremental
+/tmp/
+# Created by default with `src/ci/docker/run.sh`
+/obj/
 
-# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
-# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
-# Cargo.lock
+## Temporary files
+*~
+\#*
+\#*\#
+.#*
 
-# These are backup files generated by rustfmt
-**/*.rs.bk
+## Tags
+tags
+tags.*
+TAGS
+TAGS.*
 
-# End of https://www.gitignore.io/api/rust
+## Python
+__pycache__/
+*.py[cod]
+*$py.class
 
-# Used by macOS' file system to track custom attributes of containing folder
-.DS_Store
+## Node
+node_modules
+package-lock.json
 
-# Editors' specific files
-.idea/
-.vscode/
-*~
+## Rustdoc GUI tests
+src/test/rustdoc-gui/src/**.lock
+
+# Before adding new lines, see the comment at the top.