-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: custom cargo config to reduce build time
- Loading branch information
1 parent
0f123ef
commit 128d3f3
Showing
10 changed files
with
94 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[alias] | ||
b = "build" | ||
c = "check" | ||
d = "doc" | ||
t = "test" | ||
r = "run" | ||
|
||
[build] | ||
incremental = true | ||
# might be helpful but we don't enforce sccache installation atm | ||
# https://github.com/mozilla/sccache | ||
# rustc-wrapper = "sccache" | ||
|
||
# For details checkout https://jondot.medium.com/8-steps-for-troubleshooting-your-rust-build-times-2ffc965fd13e | ||
[target.x86_64-unknown-linux-gnu] | ||
# clang has been listed as prerequisite in the doc | ||
linker = "clang" | ||
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"] | ||
|
||
[target.x86_64-apple-darwin] | ||
# zld might help here | ||
# brew install michaeleisel/zld/zld | ||
# "-Clink-arg=-fuse-ld=zld" | ||
# For details checkout https://jondot.medium.com/8-steps-for-troubleshooting-your-rust-build-times-2ffc965fd13e | ||
rustflags = ["-Zshare-generics=y"] | ||
|
||
[net] | ||
git-fetch-with-cli = true | ||
retry = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters