Skip to content

Commit

Permalink
chore: Enable share-generics (#5121)
Browse files Browse the repository at this point in the history
### Description

This PR enables `-Zshare-generics` to reduce the binary size. This
single option reduces binary size from `153.1MiB` to `132.9MiB`


### Testing Instructions

Let's look at the benchmark actions.

---


Closes WEB-1144
  • Loading branch information
kdy1 authored and mehulkar committed Jun 5, 2023
1 parent 6b9819d commit e603df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ tp-test = "nextest run --workspace --release --no-fail-fast --exclude turbo --ex
tp-bench-test = "test --benches --workspace --release --no-fail-fast --exclude turbopack-bench --exclude turbo --exclude turborepo-* --exclude turbopath --exclude vercel-api-mock"

[target.'cfg(all())']
rustflags = ["--cfg", "tokio_unstable", "-Csymbol-mangling-version=v0", "-Aclippy::too_many_arguments"]
rustflags = ["--cfg", "tokio_unstable", "-Zshare-generics=y", "-Csymbol-mangling-version=v0", "-Aclippy::too_many_arguments"]

0 comments on commit e603df8

Please sign in to comment.