Skip to content

Commit 7516418

Browse files
committed
refactor(common): move id/path/text/debug into utils/ submodule
Separate core type definitions (error.rs, result.rs) from utility functions (id, path, text, debug) with a utils/ subdirectory. Re-exports at crate root maintain backwards compatibility: crab_common::path, crab_common::id etc. still work.
1 parent 077b037 commit 7516418

6 files changed

Lines changed: 11 additions & 4 deletions

File tree

β€Žcrates/common/src/lib.rsβ€Ž

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
pub mod debug;
21
pub mod error;
3-
pub mod id;
4-
pub mod path;
52
pub mod result;
6-
pub mod text;
3+
pub mod utils;
74

85
pub use error::Error;
96
pub use result::Result;
7+
8+
// Re-export utils at top level for backwards compatibility
9+
pub use utils::debug;
10+
pub use utils::id;
11+
pub use utils::path;
12+
pub use utils::text;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub mod debug;
2+
pub mod id;
3+
pub mod path;
4+
pub mod text;

0 commit comments

Comments
Β (0)