about summary refs log tree commit diff
path: root/.gitignore
AgeCommit message (Collapse)AuthorLines
2025-07-19tidy: use a lockfile for js tools instead of npxbinarycat-2/+0
this makes us less vulnerable to MITM and supply chain attacks. it also means that the CI scripts are no longer responsible for tracking the versions of these tools. it should also avoid the situation where local tsc and CI disagree on the presense of errors due to them being different versions.
2025-03-17change config.toml to bootstrap.toml for bootstrap modulebit-aloo-1/+2
2025-03-06Git ignore citool's target directoryEric Huss-0/+1
Whenever running citool, it leaves behind a target directory. Ignore this like we do for other tools.
2025-02-12ignore vendor directory in `git status`jyn-0/+2
2025-01-20Ignore `mermaid.min.js`jyn-0/+1
It is very long and tends to match a lot of search queries. It's not useful to show with ripgrep. Note that this does not actually untrack the file; changes can still be committed (although I suspect it may not have been intentional to commit originally?). This just changes how it interacts with tools that use `.gitignore` as a default filter.
2024-12-10only ignore `{flake,default}.nix` and `{.envrc,.direnv/}` in the rootWaffle Lapkin-4/+4
this makes it so files in `src/nix-dev-shell` are *not* ignored, as they should not be. note that `flake.lock` is still ignored globally.
2024-11-28ignore `/build` instead of `build/` in gitignoreMaybe Lapkin-2/+1
this does two things: 1. allows making `build` a symlink (which is not considered a directory by git, thus removal of trailing `/`). 2. removes the need to special case `rustc_mir_build/src/build` (leading `/` makes git only ignore the `build` in the root)
2024-10-17Rollup merge of #129620 - WaffleLapkin:flake, r=NoratriebMatthias Krüger-0/+2
Provide a more convinient way of developing rustc on NixOS This PR adds envrc files which, once symlinked as `.envrc` will activates a dev shell from `src/tools/nix-dev-shell/flake.nix` or `src/tools/nix-dev-shell/shell.nix`. This is based on - [Current rustc dev guide recommendation for NixOS](https://rustc-dev-guide.rust-lang.org/building/suggested.html?highlight=nix#using-nix-shell) - https://github.com/oxalica/rust-overlay?tab=readme-ov-file#use-in-devshell-for-nix-develop - [Nora's `x` nix package](https://github.com/Noratrieb/nixos/tree/26ea68e1a0aadaab313c1b5a8c1033a9770bd138/custom-pkgs/x) - https://github.com/rust-lang/rustup/pull/2891 - [Direnv: use flake/nix according to availability](https://discourse.nixos.org/t/direnv-use-flake-nix-according-to-availability/29825) This is something that I plan to use personally, but I thought it might be worth upstreaming :) r? Noratrieb
2024-10-03add nix files to gitignoreOrion Gonzalez-0/+5
2024-10-03add direnv to gitignoreOrion Gonzalez-0/+4
2024-09-27gitignore: Add eglot LSP config fileKajetan Puchalski-0/+1
2024-09-20Add flake.nix and .envrcMaybe Lapkin-0/+2
2024-08-25gitignore: ignore ICE reports regardless of directoryPavel Grigorenko-1/+3
2024-08-09gitignore: Add Zed and Helix editorsKajetan Puchalski-0/+2
2024-08-07Add -Zerror-metrics=PATH to save diagnostic metadata to diskJane Losare-Lusby-0/+1
2024-08-02Move the standard library to a separate workspacebjorn3-0/+1
This ensures that the Cargo.lock packaged for it in the rust-src component is up-to-date, allowing rust-analyzer to run cargo metadata on the standard library even when the rust-src component is stored in a read-only location as is necessary for loading crates.io dependencies of the standard library. This also simplifies tidy's license check for runtime dependencies as it can now look at all entries in library/Cargo.lock without having to filter for just the dependencies of runtime crates. In addition this allows removing an exception in check_runtime_license_exceptions that was necessary due to the compiler enabling a feature on the object crate which pulls in a dependency not allowed for the standard library. While cargo workspaces normally enable dependencies of multiple targets to be reused, for the standard library we do not want this reusing to prevent conflicts between dependencies of the sysroot and of tools that are built using this sysroot. For this reason we already use an unstable cargo feature to ensure that any dependencies which would otherwise be shared get a different -Cmetadata argument as well as using separate build dirs. This doesn't change the situation around vendoring. We already have several cargo workspaces that need to be vendored. Adding another one doesn't change much. There are also no cargo profiles that are shared between the root workspace and the library workspace anyway, so it doesn't add any extra work when changing cargo profiles.
2024-07-21Don't output test artifacts into working directoryMichael Goulet-1/+0
2024-07-11Avoid follow-up errors and ICEs after missing lifetime errors on data structuresOli Scherer-0/+1
2024-06-17Add `/rustc-ice*/ to `.gitignore`Trevor Gross-0/+1
2023-09-16don't globally ignore rustc-ice filesRalf Jung-1/+0
2023-08-07Ignore ICE dumps in gitOli Scherer-0/+1
2023-03-20Auto merge of #108148 - parthopdas:master, r=oli-obkbors-0/+1
Implementing "<test_binary> --list --format json" for use by IDE test explorers / runners Fixes #107307 PR 1 of 2 - wiring up just the new information + implement the command line changes i.e. --format json + tests upcoming: PR 2 of 2 - clean up "#[cfg(not(bootstrap))]" from PR 1 As per the discussions on - MCP: https://rust-lang.zulipchat.com/#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/Implementing.20.22.3Ctest_binary.3E.20--list.20--form.E2.80.A6.20compiler-team.23592/near/328747548 - preRFC: https://internals.rust-lang.org/t/pre-rfc-implementing-test-binary-list-format-json-for-use-by-ide-test-explorers-runners/18308 - FYI on Discord: https://discord.com/channels/442252698964721669/459149169546887178/1075581549409484820
2023-03-18address review commentsJoshua Nelson-0/+1
2023-03-15Implementing "<test_binary> --list --format json" #107307 #49359Partha P. Das-0/+1
2023-03-05Ignore things in .gitignore in tidyJoshua Nelson-1/+1
- Switch from `walkdir` to `ignore`. This required various changes to make `skip` thread-safe. - Ignore `build` anywhere in the source tree, not just at the top-level. We support this in bootstrap, we should support it in tidy too. As a nice side benefit, this also makes tidy a bit faster. Before: ``` ; hyperfine -i '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 1.080 s ± 0.008 s [User: 2.616 s, System: 3.243 s] Range (min … max): 1.069 s … 1.099 s 10 runs ``` After: ``` ; hyperfine '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 705.0 ms ± 1.4 ms [User: 3179.1 ms, System: 1517.5 ms] Range (min … max): 702.3 ms … 706.9 ms 10 runs ```
2023-01-11Change `src/test` to `tests` in source files, fix tidy and testsAlbert Larsan-2/+2
2022-09-01Rollup merge of #101072 - tmandry:llvm-is-vanilla, r=Mark-SimulacrumMatthias Krüger-0/+1
bootstrap: Add llvm-has-rust-patches target option This is so you can check out an upstream commit in src/llvm-project and have everything just work. This simplifies the logic in `is_rust_llvm` a bit; it doesn't need to check for download-ci-llvm because we would have already errored if both that and llvm-config were specified on the host platform.
2022-08-29Ignore cargo target folder in src/bootstrapTyler Mandry-0/+1
Needed after changes in #97513.
2022-08-20Add `/build-rust-analyzer/` to .gitignoreNilstrieb-0/+1
To avoid rust-analyzer and rustc having to wait for each other, the dev guide mentions using another build directory for RA. We should also put this into the .gitignore, just like the normal `build`.
2022-06-26Remove references to `./tmp` in-treeJoshua Nelson-2/+0
These used to be used by codegen-units tests, but were switched from manually specifying directories to just using `// incremental` in https://github.com/rust-lang/rust/pull/89101. Remove the old references.
2022-02-01Add package.json in gitignoreGuillaume Gomez-0/+1
2021-10-12Fix invalid rules in .gitignoreCanop-2/+2
`**node_modules` in a .gitignore is the same than `*node_modules` or `*****node_modules`. It matches every file whose name ends with `node_modules`, including `not_node_modules`. The intent here was obviously to have `**/node_modules` which is the same than just `node_modules`.
2021-07-12Simplify build system for rustdoc-gui test cratesGuillaume Gomez-0/+3
2021-04-22Remove "Version control"Christiaan Dirkx-4/+0
2021-04-22Clean up .gitignoreChristiaan Dirkx-26/+48
2021-03-10Ignore Vim swap filesCamelid-0/+2
2021-02-21Ignore nodejs/npm filesGuillaume Gomez-0/+2
2020-11-03Add a tool to run `x.py` from any subdirectoryCasey Rodarmor-0/+1
This adds a binary called `x` in `src/tools/x`. All it does is check the current directory and its ancestors for a file called `x.py`, and if it finds one, runs it. By installing x, you can easily `x.py` from any subdirectory. It can be installed globally with `cargo install --path src/tools/x`
2020-09-09Move `rustllvm` into `rustc_llvm`Vadim Petrochenkov-1/+0
2020-03-25gitignore: allow target to be a symlinkBen Boeckel-1/+1
Following rust-lang/cargo#4944.
2020-01-14Add unicode table generatorMark Rousskov-8/+1
2019-12-15.gitignore: Don't ignore a file that exists in the repositoryJosh Triplett-0/+1
.gitignore should not ignore files that exist in the repository. The ignore of .cargo applies to the committed .cargo directory used in an example: $ git ls-files --exclude-standard --ignored src/test/run-make/thumb-none-qemu/example/.cargo/config Explicitly un-ignore that file.
2019-10-21expand commentRalf Jung-3/+8
2019-10-21keep the root dir clean from debuggingRalf Jung-3/+0
2019-10-20Ignore DOT files in .gitignoreDylan MacKenzie-0/+3
2019-08-10.gitignore: Explain why `/obj/` is ignoredMazdak Farrokhzad-0/+1
2019-08-10Explain why `/tmp/` is ignoredMazdak Farrokhzad-0/+1
2019-08-10.gitignore: Readd `/tmp/`Mazdak Farrokhzad-0/+1
It is produced during `./x.py test`
2019-08-08more alphabeticalRalf Jung-1/+1
2019-08-08tweak ignoresRalf Jung-3/+4