refactored: narrow lib.rs visibility + drop speculative tests/common
This commit is contained in:
1 parent
63fb96a0d2
commit
05bea59ef1
3 files changed
+12
-10
No files matched your search
+10
-4
@@ -1,13 +1,19 @@
|
|||||||
//! rmcl crate root. main.rs is a thin wrapper around this library so
|
// crate root. main.rs is a thin wrapper that imports the two entry points
|
||||||
//! integration tests in tests/ can import everything.
|
// 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 auth;
|
||||||
pub mod cli;
|
mod cli;
|
||||||
pub mod config;
|
pub mod config;
|
||||||
pub mod instance;
|
pub mod instance;
|
||||||
pub mod instance_logs;
|
pub mod instance_logs;
|
||||||
pub mod launch_profile;
|
pub mod launch_profile;
|
||||||
pub mod migrate;
|
mod migrate;
|
||||||
pub mod net;
|
pub mod net;
|
||||||
pub mod running;
|
pub mod running;
|
||||||
pub mod tui;
|
pub mod tui;
|
||||||
|
|
||||||
|
pub use cli::init as cli_init;
|
||||||
|
pub use migrate::run_legacy_rename as migrate_legacy_rename;
|
||||||
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
async fn main() {
|
async fn main() {
|
||||||
// Run before logging::init() so the cache rename isn't blocked by a
|
// Run before logging::init() so the cache rename isn't blocked by a
|
||||||
// freshly-created ~/.cache/rmcl/ directory.
|
// 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
|
// Guard must stay in scope to keep the log file writer alive
|
||||||
let _guard = rmcl::tui::logging::init();
|
let _guard = rmcl::tui::logging::init();
|
||||||
@@ -10,5 +10,5 @@ async fn main() {
|
|||||||
eprintln!("Failed to install color-eyre: {}", e);
|
eprintln!("Failed to install color-eyre: {}", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
rmcl::cli::init().await
|
rmcl::cli_init().await
|
||||||
}
|
}
|
||||||
@@ -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.
|
|
||||||
Reference in new issue
Block a user