Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: Optimize all external host dependencies for faster rebuilds #1365

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@ nonstandard_macro_braces = "warn"
todo = "warn"
uninlined_format_args = "warn"

[profile.dev]
# optimize host dependencies for faster rebuilds.
# slows down compilation of those dependencies, but they'll not be compiled
# nearly as often as workspace crates in local development.
build-override.opt-level = 2

[profile.dev.package]
quote = { opt-level = 2 }
# not worth optimizing, much more likely to change than other host deps
# and not cached in CI.
svix-server_derive = { opt-level = 0 }

[patch.crates-io]
hyper = { git = "https://github.com/svix/hyper/", rev = "63efac5a6719937359d61a1bb1b93d9ce88f0e3d" }