Skip to main content

rust_switcher/
lib.rs

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