# build: Allow pinning of webrtc build artifacts \(✈️ edition\) \(\#55336\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d4f06ee3740b0da1bd55476a5ff19d7c2ac1e57f

Requested commit: d4f06ee3740b0da1bd55476a5ff19d7c2ac1e57f

Commit: d4f06ee3740b0da1bd55476a5ff19d7c2ac1e57f

Tree: e4c8dd6ff30400b15f2389eafd7bae0a8f4f60f3

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
build: Allow pinning of webrtc build artifacts (✈️ edition) (#55336)

tl;dr: you can now run `cargo xtask setup_webrtc`, which:
1. Fetches webrtc artifacts into a gitignored directory in Zed repo
2. Adds a [env] section to `~/.cargo/config.toml` on your box which
forces
   LK to NOT download webrtc artifacts as a part of its build script

The end result: `cargo clean` is no longer a horrid experience with in
horrid network environments.

Caveats:
1. This does not handle appending to existing cargo config. The setup
   script will fail if there's one in place.
2. You need to redo this thing (fetch env var and whatnot) whenever LK
   version is bumped.
3. This is not mandatory for builds to work. You only really have to do
this for your own convenience, but builds will work just fine without it
(unless your connection sucks).

Self-Review Checklist:

- [ ] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- N/A
```

## Parents

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

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