@@ -17,29 +17,37 @@ harness = false
1717required-features = [" mlogv32" ]
1818
1919[dependencies ]
20- base64 = " 0.22.1"
21- binrw = " 0.15.0"
22- cesu8 = " 1.1.0"
23- csv = " 1.3.1"
20+ binrw = { version = " 0.15.0" , default-features = false , features = [" verbose-backtrace" ] }
2421enum_dispatch = " 0.3.13"
25- flate2 = { version = " 1.1.2" , features = [" zlib-rs" ], default-features = false }
26- indexmap = " 2.10.0"
27- itertools = " 0.14.0"
28- lalrpop-util = { version = " 0.22.2" , features = [" lexer" ] }
22+ hashbrown = " 0.15.5"
23+ indexmap = { version = " 2.10.0" , default-features = false }
24+ itertools = { version = " 0.14.0" , default-features = false , features = [" use_alloc" ] }
2925lazy_static = " 1.5.0"
30- noise = " 0.9.0"
31- num-traits = " 0.2.19"
32- rand = " 0.9.2"
33- rapidhash = { version = " 3.0.0" , features = [" unsafe" ] }
34- regex = " 1.11.1"
35- replace_with = " 0.1.8"
36- serde = { version = " 1.0.219" , features = [" derive" ] }
37- serde_json = " 1.0.141"
38- strum = " 0.27.2"
26+ num-traits = { version = " 0.2.19" , default-features = false }
27+ # https://github.com/hoxxep/rapidhash/issues/38
28+ rapidhash = { git = " https://github.com/hoxxep/rapidhash" , rev = " 582477028c" , default-features = false }
29+ replace_with = { version = " 0.1.8" , default-features = false }
30+ serde = { version = " 1.0.219" , default-features = false , features = [" derive" ] }
31+ strum = { version = " 0.27.2" , default-features = false }
3932strum_macros = " 0.27.2"
40- thiserror = " 2.0.12"
41- velcro = " 0.5.4"
42- widestring = " 1.2.0"
33+ thiserror = { version = " 2.0.12" , default-features = false }
34+ widestring = { version = " 1.2.0" , default-features = false , features = [" alloc" ] }
35+
36+ # no_std
37+ libm = { version = " 0.2.11" , optional = true }
38+ serde-json-core = { version = " 0.6.0" , optional = true }
39+
40+ # std
41+ base64 = { version = " 0.22.1" , optional = true }
42+ cesu8 = { version = " 1.1.0" , optional = true }
43+ csv = { version = " 1.3.1" , optional = true }
44+ flate2 = { version = " 1.1.2" , default-features = false , features = [" zlib-rs" ], optional = true }
45+ lalrpop-util = { version = " 0.22.2" , features = [" lexer" ], optional = true }
46+ # https://github.com/Razaekel/noise-rs/issues/251
47+ noise = { version = " 0.9.0" , optional = true }
48+ rand = { version = " 0.9.2" , optional = true }
49+ regex = { version = " 1.11.1" , optional = true }
50+ serde_json = { version = " 1.0.141" , optional = true }
4351
4452# mlog
4553clap = { version = " 4.5.42" , features = [" derive" ], optional = true }
@@ -51,14 +59,44 @@ cursive = { version = "0.21.1", optional = true }
5159indicatif = { version = " 0.18.0" , optional = true }
5260
5361[build-dependencies ]
54- lalrpop = " 0.22.2"
62+ lalrpop = { version = " 0.22.2" , optional = true }
5563
5664[dev-dependencies ]
5765iai-callgrind = " 0.16.1"
5866pretty_assertions = " 1.4.1"
67+ velcro = " 0.5.4"
5968
6069[features ]
70+ default = [" std" ]
71+ no_std = [
72+ " dep:libm" ,
73+ " dep:serde-json-core" ,
74+ " lazy_static/spin_no_std" ,
75+ ]
76+ std = [
77+ " dep:base64" ,
78+ " dep:cesu8" ,
79+ " dep:csv" ,
80+ " dep:flate2" ,
81+ " dep:lalrpop" ,
82+ " dep:lalrpop-util" ,
83+ " dep:noise" ,
84+ " dep:rand" ,
85+ " dep:regex" ,
86+ " dep:serde_json" ,
87+ " binrw/std" ,
88+ " indexmap/std" ,
89+ " itertools/use_std" ,
90+ " num-traits/std" ,
91+ " rapidhash/std" ,
92+ " regex/std" ,
93+ " replace_with/std" ,
94+ " serde/std" ,
95+ " strum/std" ,
96+ " thiserror/std" ,
97+ ]
6198mlog = [
99+ " std" ,
62100 " dep:clap" ,
63101 " dep:clap-stdin" ,
64102]
0 commit comments