Skip to content

Commit 05868dd

Browse files
committed
test_tools : rid of cyclic dependcy wip
1 parent f6f8e5c commit 05868dd

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

module/core/test_tools/Cargo.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ all-features = false
2929
[features]
3030
default = [
3131
"enabled",
32-
# "standalone",
33-
"normal",
32+
"standalone",
33+
# "normal",
3434
]
3535
full = [ "default" ]
3636
no_std = [
@@ -86,9 +86,14 @@ standalone = [
8686
"dep:process_tools",
8787
]
8888
standalone_error_tools = [ "dep:anyhow", "dep:thiserror", "error_typed", "error_untyped" ]
89-
standalone_collection_tools = [ "dep:hashbrown" ]
89+
standalone_collection_tools = [ "dep:hashbrown", "collection_constructors", "collection_into_constructors" ]
90+
91+
# error_tools
9092
error_typed = []
9193
error_untyped = []
94+
# collection_tools
95+
collection_constructors = []
96+
collection_into_constructors = []
9297

9398
[dependencies]
9499

module/core/test_tools/src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,19 @@ mod private {}
102102
#[ cfg( feature = "enabled" ) ]
103103
pub mod test;
104104

105+
/// Error tools.
105106
#[ cfg( feature = "standalone" ) ]
106107
#[ path = "../../../core/error_tools/src/error/mod.rs" ]
107-
pub mod error_tools;
108+
pub mod error;
109+
#[ cfg( feature = "standalone" ) ]
110+
pub use error as error_tools;
108111

112+
/// Collection tools.
109113
#[ cfg( feature = "standalone" ) ]
110114
#[ path = "../../../core/collection_tools/src/collection/mod.rs" ]
111-
pub mod collection_tools;
115+
pub mod collection;
116+
#[ cfg( feature = "standalone" ) ]
117+
pub use collection as collection_tools;
112118

113119
#[ cfg( feature = "enabled" ) ]
114120
#[ doc( inline ) ]

0 commit comments

Comments
 (0)