Commit graph

4 commits

Author SHA1 Message Date
Conrad Irwin
9f0844399a
Better cargo wrapper (#49946)
Fixes the wrapper on linux/mac to not double-run cargo. Makes it work at
all on windows

Release Notes:

- N/A
2026-02-24 05:13:04 +00:00
Cameron Mcloughlin
bb271cf562
build: Add cargo timing script to devshell (#49941) 2026-02-24 02:46:26 +00:00
Kunall Banerjee
e14f6e764e
Respect ZDOTDIR environment variable iff set (#49913)
When `ZDOTDIR` is set, `zsh` reads its configuration from that directory
instead of the user’s `$HOME` directory.

| Setup | `ZDOTDIR` set? | Script writes to | Zsh reads from | Match? |
|---|---|---|---|---|
| XDG + `ZDOTDIR` |  | `$ZDOTDIR/.zshrc` | `$ZDOTDIR/.zshrc` |  |
| XDG without `ZDOTDIR` |  | `$HOME/.zshrc` | `$HOME/.zshrc` |  |
| No XDG at all |  | `$HOME/.zshrc` | `$HOME/.zshrc` |  |


Ref: https://zsh.sourceforge.io/Intro/intro_3.html

Release Notes:

- N/A
2026-02-23 18:04:16 +00:00
Conrad Irwin
b775e5d63f
Add a cargo wrapper to report build times (#49632)
This adds `./script/cargo` which is a transparent wrapper around `cargo`
intended for use by internal staff members at Zed.

It:
- adds `--timings` to `cargo build`/`cargo test`/`cargo run`
- saves the output to ZED_DATA_DIR/build-timings

When Zed starts (and you're logged in as a staff member) the
build-timings
directory is uploaded to our existing telemetry stack.

Co-authored-by: Marshall <git@maxdeviant.com>

Release Notes:

- N/A
2026-02-23 09:46:28 -07:00