Skip to content

Commit acfb4c3

Browse files
committed
meta_tools: optional mod_interface
1 parent 54f0f4e commit acfb4c3

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

module/core/meta_tools/Cargo.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,40 +29,40 @@ default = [
2929
"enabled",
3030
"meta_for_each",
3131
"meta_impls_index",
32-
# "meta_mod_interface",
33-
# "meta_constructors",
32+
"mod_interface",
3433
"meta_idents_concat",
3534
]
3635
full = [
3736
"enabled",
3837
"meta_for_each",
3938
"meta_impls_index",
40-
# "meta_mod_interface",
41-
# "meta_constructors",
39+
"mod_interface",
4240
"meta_idents_concat",
4341
]
4442
no_std = []
4543
use_alloc = [ "no_std" ]
46-
enabled = []
44+
enabled = [
45+
"for_each/enabled",
46+
"impls_index/enabled",
47+
"mod_interface/enabled",
48+
]
4749

48-
meta_for_each = [ "for_each/enabled" ]
49-
meta_impls_index = [ "impls_index/enabled" ]
50-
meta_mod_interface = [ "mod_interface/enabled" ]
51-
# xxx : qqq : make mod_interface optional maybe
50+
meta_for_each = [ "for_each/enabled", "dep:for_each" ]
51+
meta_impls_index = [ "impls_index/enabled", "dep:impls_index" ]
52+
mod_interface = [ "mod_interface/enabled", "dep:mod_interface" ]
5253

5354
# meta_constructors = [ "literally" ]
54-
meta_idents_concat = [ "paste" ]
55+
meta_idents_concat = [ "dep:paste" ]
5556

5657
[dependencies]
5758

5859
# ## external
59-
# literally = { version = "~0.1.3", optional = true, default-features = false }
6060
paste = { workspace = true, optional = true, default-features = false }
6161

6262
## internal
63-
impls_index = { workspace = true }
64-
for_each = { workspace = true }
65-
mod_interface = { workspace = true, features = [ "default" ] }
63+
for_each = { workspace = true, optional = true }
64+
impls_index = { workspace = true, optional = true }
65+
mod_interface = { workspace = true, optional = true }
6666

6767
[dev-dependencies]
6868
test_tools = { workspace = true }

0 commit comments

Comments
 (0)