# Enable share-generics in release bundle builds \(\#63432\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/68b6504506417b9c44f81eb7f5ffcb82fb4d82c4)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 68b6504506417b9c44f81eb7f5ffcb82fb4d82c4

Requested commit: 68b6504506417b9c44f81eb7f5ffcb82fb4d82c4

Commit: 68b6504506417b9c44f81eb7f5ffcb82fb4d82c4

Tree: a17d34b283f39ae595f0ea5f67ed9a42d7206ac9

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Enable share-generics in release bundle builds (#63432)

Cargo joins `build.rustflags` across config sources, so the base
`symbol-mangling-version=v0` and `tokio_unstable` flags still apply
after the newly added config.

With sccache disabled, `cargo build --release -p zed` on macOS: 
Before: zed binary 420677880 bytes
After: zed binary 375109048 bytes (-10.8%, -45.6MB)

After `strip -x` of both
(https://github.com/zed-industries/zed/pull/63429):
313879024 -> 307727432 bytes (-2.0%, -6.2MB)
The rest of the delta is the smaller symbol table. `drop_glue`
instantiations: 101778 -> 65041.

Release Notes:

- N/A
```

## Parents

- [399258feeaf90ad8a3a208c99221ee87b6452f38](https://git.cafe/gitcafe/zed/commit/399258feeaf90ad8a3a208c99221ee87b6452f38?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/68b6504506417b9c44f81eb7f5ffcb82fb4d82c4?format=markdown)
