zed/crates/cli
Conrad Irwin f057e898e9 dcargo support: pinned tools manifest, extra-inputs, patched scratch
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.
2026-08-18 00:12:08 -06:00
..
src git: Add possibility to open specific line in a diff using the CLI (#45499) 2026-07-18 19:56:01 +00:00
build.rs dcargo support: pinned tools manifest, extra-inputs, patched scratch 2026-08-18 00:12:08 -06:00
Cargo.toml Add shell completions for CLI (#57440) 2026-06-22 14:57:34 +00:00
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