# Remove some unnecessary dependencies \(\#64862\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 98f75a23bc401d807fb797ad74a92ededdd9ff8c

Requested commit: 98f75a23bc401d807fb797ad74a92ededdd9ff8c

Commit: 98f75a23bc401d807fb797ad74a92ededdd9ff8c

Tree: 83a88f37c0bbf20766b58dc6877fa9743bb45031

Author: Xin Zhao

Committer: GitHub

## Message

```
Remove some unnecessary dependencies (#64862)

## Summary

Some dependencies were originally introduced for only a few specific
functions that can either be fulfilled by existing dependencies or
easily implemented in-tree. This PR removes or replaces them:

1. `json_dotpath`: Removed. We do not use the dot-path query feature;
standard methods in `serde_json` are sufficient for our use case.
2. `crossbeam`: Replaced with the more lightweight `crossbeam-queue`.
3. `take-until`: Removed. Calls to `take_until` are replaced with
`take_while_inclusive` from `itertools`, which is already widely used in
Zed.
4. `x11-clipboard`: Removed. It is deprecated and was only an unused
entry left in `Cargo.toml`.
5. `portable-pty`: Removed. We only used the `ExitStatus` transformation
logic from this crate, which has now been inlined into the Zed codebase.

Together, these changes reduce the total crate count from 1,727 to 1,717
during a Linux `cargo build`, slightly improving compile times.

## Testing

This is a refactoring PR with no functional changes. Existing tests were
run locally to ensure no regressions were introduced.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [ ] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist).
- [ ] Tests cover the new or changed behavior.

Release Notes:

- N/A
- [GPUI] N/A
```

## Parents

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

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