Cargo Features
[dependencies]
ambient_element = { version = "0.3.1", default-features = false, features = ["native", "guest"] }
- default = native
-
The
native
feature is set by default wheneverambient_element
is added without
somewhere in the dependency tree.default-features = false - native default
-
Enables ambient_core, native of ambient_guest_bridge and ambient_sys and tokio
ambient_sys:
Only on native
Affects
hooks::use_task
,hooks::use_local_task
,hooks::use_async
,hooks::use_memo_async
,hooks::use_system
,ambient_element::ambient_system
,ambient_element::render_parented_with_component
… - guest
-
Enables guest of ambient_guest_bridge
Affects
hooks::use_module_message_effect
,hooks::use_query
,hooks::use_entity_component
,hooks::use_resource
,hooks::use_entity_concept
…