Skip to content

Commit

Permalink
chore: Enable share-generics (vercel#50673)
Browse files Browse the repository at this point in the history
### What?

Reduce the binary size by enabling `-Zshare-generics`.

### Why?

The binary size is way too big.

### How?

`153.6MiB`  => `132.9MiB`

(Apple silicon)


---

Closes WEB-1144

Turbopack counterpart: vercel/turbo#5121
  • Loading branch information
kdy1 authored and hydRAnger committed Jun 12, 2023
1 parent 86d4aea commit 338c96c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ linker = "aarch64-linux-musl-gcc"
rustflags = [
"--cfg",
"tokio_unstable",
"-Zshare-generics=y",
"-Csymbol-mangling-version=v0",
"-Ctarget-feature=-crt-static",
"-Clink-arg=-lgcc",
Expand All @@ -28,6 +29,7 @@ linker = "arm-linux-gnueabihf-gcc"
rustflags = [
"--cfg",
"tokio_unstable",
"-Zshare-generics=y",
"-Csymbol-mangling-version=v0",
"-Aclippy::too_many_arguments",
]

0 comments on commit 338c96c

Please sign in to comment.