fabro/lib/crates/fabro-util/src/lib.rs
Bryan Helmkamp c8af7e0638
refactor(home): move Home to fabro-util so all crates can share it
Home lived in fabro-config, which meant fabro-types (a dependency of
fabro-config) could not use it — forcing Settings::storage_dir() to
duplicate the FABRO_HOME / dirs::home_dir() fallback logic. Moving Home
to the leaf crate fabro-util breaks this layering constraint and lets
Settings::storage_dir() delegate to Home::from_env().storage_dir().

Also adds stable accessors: storage_dir, socket_path, workflows_dir,
logs_dir, tmp_dir. fabro-config re-exports Home for API compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 13:08:35 -04:00

18 lines
292 B
Rust

pub mod backoff;
pub mod check_report;
pub mod env;
pub mod home;
pub mod json;
pub mod path;
pub mod printer;
pub mod redact;
pub mod run_log;
pub mod terminal;
pub mod text;
pub mod version;
pub mod warnings;
#[doc(hidden)]
pub use console;
pub use home::Home;
pub use warnings::WARNINGS;