File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,12 @@ categories = { workspace = true }
35
35
keywords = { workspace = true }
36
36
37
37
[features ]
38
- default = []
38
+ default = [" macros" ]
39
+ macros = [" dep:comemo-macros" ]
39
40
testing = []
40
41
41
42
[dependencies ]
42
- comemo-macros = { workspace = true }
43
+ comemo-macros = { workspace = true , optional = true }
43
44
parking_lot = { workspace = true }
44
45
siphasher = { workspace = true }
45
46
@@ -49,4 +50,4 @@ serial_test = { workspace = true }
49
50
[[test ]]
50
51
name = " tests"
51
52
path = " tests/tests.rs"
52
- required-features = [" testing" ]
53
+ required-features = [" macros " , " testing" ]
Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ mod track;
92
92
pub use crate :: cache:: evict;
93
93
pub use crate :: hash:: Prehashed ;
94
94
pub use crate :: track:: { Track , Tracked , TrackedMut , Validate } ;
95
+
96
+ #[ cfg( feature = "macros" ) ]
95
97
pub use comemo_macros:: { memoize, track} ;
96
98
97
99
/// These are implementation details. Do not rely on them!
You can’t perform that action at this time.
0 commit comments