# Fix nightly bundle \(\#46163\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 61eed8c8b9c728a5ae68edd9e8b426162daf303a

Requested commit: 61eed8c8b9c728a5ae68edd9e8b426162daf303a

Commit: 61eed8c8b9c728a5ae68edd9e8b426162daf303a

Tree: 2f3cc0d367e1144e1ae0034b28e3bd53fec889bc

Author: Richard Feldman

Committer: GitHub

## Message

```
Fix nightly bundle  (#46163)

The visual_test_runner binary (added in #45259) has `required-features =
["visual-tests"]`, so it doesn't get built in release builds. However,
`cargo bundle` was trying to bundle all binaries defined in the zed
crate's Cargo.toml, causing it to fail when visual_test_runner doesn't
exist.

Adding `--bin zed` tells cargo bundle to only bundle the main zed
binary.

**Note:** The `cli` binary is unaffected by this change - it's a
separate package (`crates/cli`) that's built separately via `cargo build
--package cli` and manually copied into the app bundle afterward (line
337). It was never part of `cargo bundle`'s scope.

Fixes the nightly build failure:
https://github.com/zed-industries/zed/actions/runs/20740971838

Release Notes:

- N/A
```

## Parents

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

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