# Move gpui derives tests into gpui crate to avoid dependency cycles · gitcafe/zed

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

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

Visibility: public

Requested revision: 1c4be24fb73609f3583d1d3772399f86304a2f77

Requested commit: 1c4be24fb73609f3583d1d3772399f86304a2f77

Commit: 1c4be24fb73609f3583d1d3772399f86304a2f77

Tree: e315080ae20f9a88ee1af55fae30f958a8d4edae

Author: Kirill Bulatov

Committer: Kirill Bulatov

## Message

```
Move gpui derives tests into gpui crate to avoid dependency cycles

`cargo run` on Zed project leads to rust-analyzer evantually emitting

`[ERROR project_model::workspace] cyclic deps:
gpui_macros(Idx::<CrateData>(269)) -> gpui(Idx::<CrateData>(264)),
alternative path: gpui(Idx::<CrateData>(264)) ->
gpui_macros(Idx::<CrateData>(269))`

error after loading the project.

The PR fixes this by moving away the test to the "root" project.

```

## Parents

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

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