Skip to content

Commit

Permalink
Make procedural macros faster by optimizing quote (#1250)
Browse files Browse the repository at this point in the history
This takes extra compile time on first build of quote, but the cost is
recouped by faster runtime of proc-macros, even for clean `cargo check`.
(tested for server, but bridge has just as many proc-macro dependencies)
  • Loading branch information
svix-jplatte authored Mar 6, 2024
1 parent bdb44ee commit 9fbacee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ members = [
"svix-bridge",
"svix-bridge-plugin-queue",
]

[profile.dev.package]
quote = { opt-level = 2 }
3 changes: 3 additions & 0 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ mut_mut = "warn"
nonstandard_macro_braces = "warn"
todo = "warn"

[profile.dev.package]
quote = { opt-level = 2 }

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

0 comments on commit 9fbacee

Please sign in to comment.