mirror of
https://github.com/zed-industries/zed.git
synced 2026-08-24 00:16:18 +00:00
Companion branch for https://github.com/ConradIrwin/dcargo (deterministic, sandboxed, content-addressed cargo-compatible builds). Changes: - dcargo-tools.toml: sha256-pinned protoc/cmake/webrtc-prebuilt, and ZED_COMMIT_SHA as a declared plan-time env-input (build scripts run network-less and env-scrubbed in a sandbox) - cli/remote_server build.rs: honor ZED_COMMIT_SHA env before shelling out to git (sandboxed builds have no ambient git access) - [package.metadata.dcargo] extra-inputs on extension_host, gpui_apple, prompt_store, release_channel: declare cross-package file reads so they are hashed into cache keys and readable in the sandbox - dcargo-patches/scratch + [patch.crates-io]: scratch's path() reads OUT_DIR at runtime instead of baking in a compile-time global shared dir; each build script gets a private, deterministic, cache-keyed dir - .gitignore: dtarget/ (dcargo's exported artifacts) Under plain cargo everything behaves as before. |
||
|---|---|---|
| .. | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||
| LICENSE-GPL | ||
| README.md | ||
Cli
Testing
You can test your changes to the cli crate by first building the main zed binary:
cargo build -p zed
And then building and running the cli crate with the following parameters:
cargo run -p cli -- --zed ./target/debug/zed.exe