Cargo Features

[dependencies]
ambient_element = { version = "0.3.1", default-features = false, features = ["native", "guest"] }
default = native

The native feature is set by default whenever ambient_element is added without default-features = false somewhere in the dependency tree.

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