# rust: Change cwd of \`cargo run\`\-esque tasks to use package root, not dirname of current file as cwd \(\#44672\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8d0fff688f54c6dd2626e292f296eb9753f10c0f

Requested commit: 8d0fff688f54c6dd2626e292f296eb9753f10c0f

Commit: 8d0fff688f54c6dd2626e292f296eb9753f10c0f

Tree: 7c80a3ff08ab83a000f20b60d28bee8525fe3093

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
rust: Change cwd of `cargo run`-esque tasks to use package root, not dirname of current file as cwd (#44672)

This also applies to `cargo clean` one.

Closes #20873

Release Notes:

- rust: Changed cwd of tasks that spawn a binary target to the root of a
current package (which used to be a directory of the current source
file).
```

## Parents

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

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