refactored: narrow lib.rs visibility + drop speculative tests/common

This commit is contained in:
objz committed 2026-05-26 21:00:06 +02:00
1 parent 63fb96a0d2
commit 05bea59ef1
3 files changed
+12 -10

No files matched your search

+10 -4
View File
@@ -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;
+2 -2
View File
@@ -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
}