@@ -23,9 +23,9 @@ cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
2323[dependencies ]
2424flecs_ecs_derive = { workspace = true }
2525flecs_ecs_sys = { workspace = true }
26- bitflags = " 2.6 .0"
27- compact_str = " 0.8 .0"
28- hashbrown = " 0.15.0 "
26+ bitflags = " 2.8 .0"
27+ compact_str = { version = " 0.9 .0" , default-features = false }
28+ hashbrown = " 0.15.2 "
2929
3030# used for backtraces upon hardware exceptions during test
3131# only used when "test-with-crash-handler" feature enabled
@@ -34,18 +34,22 @@ test_crash_handler = { version = "0.1.0", path = "../test_crash_handler", option
3434[dev-dependencies ]
3535criterion = " 0.5.1"
3636seq-macro = " 0.3.5"
37- rand = " 0.8.5"
38- ctor = " 0.2.7"
39- insta = { version = " 1.38.0" , features = [" yaml" ," filters" ] }
37+ rand = " 0.9.0"
38+ ctor = " 0.4.0"
39+ insta = { version = " 1.42.1" , features = [" yaml" ," filters" ] }
40+ libc.workspace = true
4041# used for capturing stdout in the examples test cases. Works only on Nightly, meant
4142# to be used with flecs_nightly_tests feature flag
4243# capture-stdio = "0.1.1"
4344
44- [features ]
45+ [features ]
4546# #####################
4647# sys feature flags
4748# #####################
4849
50+ # use std
51+ std = [" flecs_ecs_derive/std" , " compact_str/std" ]
52+
4953# Regenerate the C binding for flecs C
5054flecs_regenerate_binding_c = [" flecs_ecs_sys/regenerate_binding" ]
5155
@@ -72,6 +76,9 @@ flecs_disable_build_c = ["flecs_ecs_sys/disable_build_c"]
7276# Flecs feature flags
7377# #####################
7478
79+ # Enable query trait for Rust
80+ flecs_query_rust_traits = [" flecs_ecs_derive/flecs_query_rust_traits" ]
81+
7582# Enable flecs performance tracing
7683flecs_perf_trace = [" flecs_ecs_sys/flecs_perf_trace" ]
7784
@@ -149,27 +156,35 @@ flecs_nightly_tests = []
149156# enable a backtrace on crashes during tests, used for e.g. debugging intermittent CI failures
150157test-with-crash-handler = [" dep:test_crash_handler" , " test_crash_handler/crash-handler" ]
151158
159+ # most common base features
160+ flecs_base = [
161+ # this is commented since `no_std` is not ready yet
162+ " std" ,
163+ " flecs_module" ,
164+ " flecs_system" ,
165+ " flecs_pipeline" ,
166+ " flecs_timer" ,
167+ " flecs_os_api_impl" ,
168+ ]
169+
152170default = [
153171 # "flecs_regenerate_binding_c",
154172 # "flecs_nightly_tests",
155- " flecs_module " ,
173+ " flecs_base " ,
156174 " flecs_script" ,
157175 " flecs_snapshot" ,
158176 " flecs_stats" ,
159177 " flecs_metrics" ,
160178 " flecs_alerts" ,
161- " flecs_system" ,
162- " flecs_pipeline" ,
163- " flecs_timer" ,
164179 " flecs_meta" ,
165180 " flecs_units" ,
166181 " flecs_json" ,
167182 " flecs_doc" ,
168183 " flecs_log" ,
169184 " flecs_app" ,
170- " flecs_os_api_impl" ,
171185 " flecs_http" ,
172186 " flecs_rest" ,
187+ " flecs_query_rust_traits"
173188]
174189
175190# #####################
0 commit comments