1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Locates paths expressed relative to the **`coremlit` crate root** from
//! either workspace member that compiles the shared test-support modules.
//!
//! `coremlit/tests/{speaker,clap,vad}/common/mod.rs` are shared: the
//! `coremlit` package's own test binaries declare them with a plain
//! `mod common;`, while the `coremlit-parity` package's oracle binaries pull
//! the very same files in with `#[path = "../../../coremlit/tests/…"]` (one
//! copy, so the two sides cannot drift). `env!("CARGO_MANIFEST_DIR")` expands
//! against the crate being COMPILED, not the file's location, so from
//! `coremlit-parity` it names `coremlit-parity` and every committed
//! fixture under `coremlit/tests/**/fixtures/` would resolve to a
//! nonexistent path.
//!
//! [`coremlit_dir`] closes that gap with a compile-time-decided hop to the
//! sibling package directory. Deliberately NOT a filesystem probe: the
//! resolved path is the manifest dir itself when compiled into `coremlit`, so
//! the 13 test binaries that stay behind see byte-identical paths (and
//! byte-identical panic messages) before and after the split.
//!
//! Note that `Models/` and sibling-checkout resolvers do NOT need this hop:
//! both packages sit directly under the workspace root, and `workspace_root.rs`
//! next door FINDS that root from either of them — by searching upward for the
//! `[workspace]` manifest — rather than counting `../` hops to it.
use ;
/// The `coremlit` package directory, whichever package is being compiled.
/// Joins `rel` onto [`coremlit_dir`].