diff --git a/src/lib.rs b/src/lib.rs index 5985c28..be43188 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,13 +1,19 @@ -//! rmcl crate root. main.rs is a thin wrapper around this library so -//! integration tests in tests/ can import everything. +// crate root. main.rs is a thin wrapper that imports the two entry points +// re-exported below; everything else stays crate-private. integration tests +// in tests/ that need to reach in deeper can use `rmcl::auth`, `rmcl::net`, +// etc. directly; cli + migrate stay private because they have nothing +// general to expose. pub mod auth; -pub mod cli; +mod cli; pub mod config; pub mod instance; pub mod instance_logs; pub mod launch_profile; -pub mod migrate; +mod migrate; pub mod net; pub mod running; pub mod tui; + +pub use cli::init as cli_init; +pub use migrate::run_legacy_rename as migrate_legacy_rename; diff --git a/src/main.rs b/src/main.rs index c11a440..ec7b258 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ async fn main() { // Run before logging::init() so the cache rename isn't blocked by a // freshly-created ~/.cache/rmcl/ directory. - rmcl::migrate::run_legacy_rename(); + rmcl::migrate_legacy_rename(); // Guard must stay in scope to keep the log file writer alive let _guard = rmcl::tui::logging::init(); @@ -10,5 +10,5 @@ async fn main() { eprintln!("Failed to install color-eyre: {}", e); } - rmcl::cli::init().await + rmcl::cli_init().await } diff --git a/tests/common/mod.rs b/tests/common/mod.rs deleted file mode 100644 index edf3a38..0000000 --- a/tests/common/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -//! shared helpers for integration tests in tests/. populated by phase C -//! when filesystem-touching tests move out of inline modules. - -// intentionally empty for now.