zed/crates/multi_buffer
Anthony Eid 58d03b0137 benchmarks: Stop requesting multi_buffer's test-support feature
Adds a narrow `benchmarks` feature to `multi_buffer`, gating
`MultiBuffer::build_simple_for_benchmarks`/`build_random_for_benchmarks` as
production-faithful equivalents of `build_simple`/`build_random` that do not
require any crate's test-support. `display_map`/`editor_render` now call the
new functions instead, and `benchmarks` requests `multi_buffer/benchmarks`
instead of `multi_buffer/test-support`.

`build_random_for_benchmarks` is a dedicated duplicate of
`randomly_edit_excerpts`, substituting a vendored `BenchmarkRandomCharIter`
for `util::RandomCharIter` (the only test-support-only dependency it has),
guarded against drift by a new parity test asserting byte-identical output
against `build_random` for the same rng sequence.

Extends script/check-gpui-bench-feature-isolation to prove the direct
benchmarks -> multi_buffer/test-support edge is gone and that multi_buffer's
benchmarks feature itself resolves no test-support.
2026-08-21 18:07:52 -04:00
..
src benchmarks: Stop requesting multi_buffer's test-support feature 2026-08-21 18:07:52 -04:00
Cargo.toml benchmarks: Stop requesting multi_buffer's test-support feature 2026-08-21 18:07:52 -04:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00