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 }
3535keywords = { workspace = true }
3636
3737[features ]
38- default = []
38+ default = [" macros" ]
39+ macros = [" dep:comemo-macros" ]
3940testing = []
4041
4142[dependencies ]
42- comemo-macros = { workspace = true }
43+ comemo-macros = { workspace = true , optional = true }
4344parking_lot = { workspace = true }
4445siphasher = { workspace = true }
4546
@@ -49,4 +50,4 @@ serial_test = { workspace = true }
4950[[test ]]
5051name = " tests"
5152path = " 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;
9292pub use crate :: cache:: evict;
9393pub use crate :: hash:: Prehashed ;
9494pub use crate :: track:: { Track , Tracked , TrackedMut , Validate } ;
95+
96+ #[ cfg( feature = "macros" ) ]
9597pub use comemo_macros:: { memoize, track} ;
9698
9799/// These are implementation details. Do not rely on them!
You can’t perform that action at this time.
0 commit comments