Skip to content

Commit

Permalink
Git ignore .cargo (#1767)
Browse files Browse the repository at this point in the history
This way, one can add a `.cargo/config.toml` with the content:

```toml
[build]
rustflags = ["-C", "target-cpu=native"]
```

and doesn't have to think of setting it manually.
  • Loading branch information
georgwiese authored Sep 13, 2024
1 parent b554c01 commit 9a0bd38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# will have compiled files and executables
/target/

# Cargo configuration
/.cargo/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
Expand Down

0 comments on commit 9a0bd38

Please sign in to comment.