beady_eye/lib.rs
1//! The library `bdi` is: the modules it holds, and how far into them a test
2//! may reach.
3//!
4//! bdi and the tests under `tests/` are the only consumers of this library,
5//! and a `pub` module is reachable by definition — so `pub mod` on every line
6//! here is what switches `dead_code` off across the whole crate. These
7//! modules are private instead, and the lint says so when nothing production
8//! reaches an item.
9//!
10//! The tests reach further in than bdi does. `testing` opens the five they
11//! name back up, and cargo enables it for exactly the builds that compile
12//! tests, because the package dev-depends on itself. So `cargo build` sees
13//! the narrow surface, `cargo test` the wide one, and one line here decides
14//! both. `tui` takes no gate: no test names it, so it is private in every
15//! build.
16
17pub mod cli;
18
19mod tui;
20
21#[cfg(feature = "testing")]
22pub mod app;
23#[cfg(not(feature = "testing"))]
24mod app;
25
26#[cfg(feature = "testing")]
27pub mod collect;
28#[cfg(not(feature = "testing"))]
29mod collect;
30
31#[cfg(feature = "testing")]
32pub mod config;
33#[cfg(not(feature = "testing"))]
34mod config;
35
36#[cfg(feature = "testing")]
37pub mod model;
38#[cfg(not(feature = "testing"))]
39mod model;
40
41#[cfg(feature = "testing")]
42pub mod view;
43#[cfg(not(feature = "testing"))]
44mod view;