rust_switcher/lib.rs
1#![allow(
2 clippy::multiple_crate_versions,
3 reason = "The binary integrates Win32 and NLP crates that currently pull parallel transitive major versions."
4)]
5
6// Library target is intentionally minimal and cross-platform.
7//
8// The Windows application lives in `src/main.rs` and declares its own module tree.
9// If we compile the Windows app modules here, `cargo check` / `cargo clippy --all-targets`
10// will build the library target first and hit `dead_code` cascades under `-D warnings`.
11//
12// The only code that belongs in the shared library right now is `rust-switcher-core`.
13
14pub use rust_switcher_core as core;
15
16// Compatibility shim for existing unit tests that still refer to
17// `crate::domain::text::mapping::*`.
18pub mod domain {
19 pub mod text {
20 pub mod mapping {
21 pub use rust_switcher_core::text::mapping::*;
22 }
23 }
24}
25
26#[path = "input/ring_buffer.rs"]
27pub mod ring_buffer;
28
29// Compatibility shim for unit tests that still refer to
30// `crate::input::ring_buffer::*`.
31pub mod input {
32 pub use super::ring_buffer;
33}
34
35#[cfg(test)]
36mod core_tests;