# rust: Enable required features when executing \`main\` functions in tasks \(\#27312\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4a356466b199df2a829da0274b28a316f6d7013d

Requested commit: 4a356466b199df2a829da0274b28a316f6d7013d

Commit: 4a356466b199df2a829da0274b28a316f6d7013d

Tree: dcf92dd2a1169e25a5c9d153f58e24b03c3b357d

Author: Niklas Eicker

Committer: GitHub

## Message

```
rust: Enable required features when executing `main` functions in tasks (#27312)

Closes #13344

This PR causes required features to be read from `cargo metadata` and
enabled when executing an example/bin in Rust.

Release Notes:

- Added enabling required features when executing a Rust example or bin
through a task
```

## Parents

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

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