дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +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]>
35 рядки
944 B
TOML
35 рядки
944 B
TOML
[package]
|
|
name = "ide-heap"
|
|
description = "HotSpot .hprof parser and heap-snapshot analysis for the debugger's JVM Memory view"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
ide-core.workspace = true
|
|
memmap2.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
specta.workspace = true
|
|
thiserror.workspace = true
|
|
tracing.workspace = true
|
|
uuid.workspace = true
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[features]
|
|
# `testing`: the `.hprof` fixture builders, for tests and benches of this crate and of crates built on it.
|
|
testing = []
|
|
|
|
[dev-dependencies]
|
|
# Self dev-dependency: turns `testing` on for this crate's benches, so a plain `cargo bench -p ide-heap` builds them.
|
|
ide-heap = { workspace = true, features = ["testing"] }
|
|
criterion = { version = "0.5", default-features = false }
|
|
proptest.workspace = true
|
|
tempfile.workspace = true
|
|
|
|
[[bench]]
|
|
name = "heap"
|
|
harness = false
|