дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 01:01:17 +02:00
`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]>
44 рядки
1.1 KiB
TOML
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
|