| 40 |
40 |
|
pub use keys::{Action, classify};
|
| 41 |
41 |
|
pub use layout::{ConsoleAreas, PaneAreas, console, panes};
|
| 42 |
42 |
|
pub use selection::{MARKER, selected_style};
|
| 43 |
|
- |
pub use theme::{Fidelity, Mode, Theme, ThemeError, border_strong, border_subtle, mix_linear_srgb};
|
|
43 |
+ |
pub use theme::{
|
|
44 |
+ |
Fidelity, Mode, Theme, ThemeError, border_strong, border_subtle, fidelity, mix_linear_srgb,
|
|
45 |
+ |
};
|
| 44 |
46 |
|
pub use widgets::*;
|
|
47 |
+ |
|
|
48 |
+ |
#[cfg(test)]
|
|
49 |
+ |
mod tests {
|
|
50 |
+ |
// The crate root is the API. Every one of these is reachable through its
|
|
51 |
+ |
// own module regardless, so a re-export missing from this list still
|
|
52 |
+ |
// compiles everywhere inside the crate and breaks only at a call site
|
|
53 |
+ |
// outside it. That is how 4.0.0 shipped without `fidelity`, which is the
|
|
54 |
+ |
// replacement the same release told callers to move to.
|
|
55 |
+ |
#[test]
|
|
56 |
+ |
fn the_names_a_caller_is_told_to_use_are_exported_from_the_root() {
|
|
57 |
+ |
let _: crate::Fidelity = crate::fidelity();
|
|
58 |
+ |
let _: fn(&makeover::ThemeColors) -> _ = crate::Theme::from_theme;
|
|
59 |
+ |
let _: fn(makeover::Rgb, makeover::Rgb) -> _ = crate::border_subtle;
|
|
60 |
+ |
let _: fn(makeover::Rgb, makeover::Rgb) -> _ = crate::border_strong;
|
|
61 |
+ |
let _: fn(makeover::Rgb, makeover::Rgb, f32) -> _ = crate::mix_linear_srgb;
|
|
62 |
+ |
}
|
|
63 |
+ |
}
|