Skip to content

Commit

Permalink
server: Optimize all external host dependencies for faster rebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Jul 10, 2024
1 parent 3467877 commit f674f06
Showing 1 changed file with 9 additions and 1 deletion.
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" }

0 comments on commit f674f06

Please sign in to comment.