Файли
openidea/crates/ide-index/Cargo.toml
T
Mr0Bread a8aefa57c8 refactor(heap,index): compile test and bench support only for tests and benches (#5491)
`ide_heap::testing` (~430 lines of `.hprof` fixture builders) and `ide_index::bench_support` (`SyntheticIndex`) were `#[doc(hidden)] pub mod`s, so they were compiled into the desktop app and `openidea-server` and were part of the public API of both crates. Only tests and benches use them. They are now behind a `testing` feature (`ide-heap`) and a `bench-support` feature (`ide-index`), plus `cfg(test)` for in-crate tests. This follows what `ide-ssh` already does. `bench-support` is named for what it holds: a bench-only builder, not shared test fixtures.

Co-authored-by: Mr0Bread <[email protected]>
2026-11-24 05:29:43 +08:00

44 рядки
1.1 KiB
TOML

[package]
name = "ide-index"
description = "Background project index: files and symbols, persisted in redb, fuzzy queried with nucleo"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
dunce.workspace = true
ide-core.workspace = true
ide-language.workspace = true
serde.workspace = true
specta.workspace = true
redb.workspace = true
nucleo-matcher.workspace = true
rayon.workspace = true
parking_lot.workspace = true
blake3.workspace = true
tracing.workspace = true
ignore.workspace = true
globset.workspace = true
postcard = { version = "1.1", default-features = false, features = ["use-std"] }
[build-dependencies]
blake3.workspace = true
[features]
# `bench-support`: a synthetic in-memory index for `benches/index.rs`.
bench-support = []
[dev-dependencies]
# Self dev-dependency: turns `bench-support` on for this crate's benches, so a plain `cargo bench -p ide-index` builds them.
ide-index = { workspace = true, features = ["bench-support"] }
tempfile.workspace = true
criterion = { version = "0.5", default-features = false }
[[bench]]
name = "index"
harness = false
[[bench]]
name = "startup"
harness = false