Cargo Features

[dependencies]
hooks = { version = "3.0.0-alpha.15", default-features = false, features = ["all", "proc-macro", "futures-core", "ShareValue", "Signal", "use_debug", "use_default_pinned", "use_effect", "use_lazy_pinned", "use_lazy_pinned_hook", "use_memo", "use_mut", "use_poll_next_update", "use_shared_signal", "use_state_with_updater", "use_uninitialized_hook", "UpdateState", "use_shared_update_state", "use_shared_update_state+", "use_shared_reducer", "use_shared_toggle", "use_gen_update_state", "use_gen_update_state+", "use_gen_reducer", "use_gen_toggle", "use_gen_signal", "use_shared+", "use_gen+"] }
default = all, futures-core

These default features are set whenever hooks is added without default-features = false somewhere in the dependency tree.

all default = ShareValue, Signal, use_debug, use_default_pinned, use_effect, use_gen+, use_lazy_pinned, use_lazy_pinned_hook, use_memo, use_mut, use_poll_next_update, use_shared+, use_state_with_updater, use_uninitialized_hook
proc-macro = hooks-macro
futures-core default

Enables futures-core of hooks-core

ShareValue Signal? all
Signal all = ShareValue
use_debug all

Affects hooks::debug

use_default_pinned all use_lazy_pinned?

Affects hooks::pinned

use_effect all

Affects hooks::effect

use_lazy_pinned all = use_default_pinned

Affects hooks::lazy_pinned

use_lazy_pinned_hook all

Affects hooks::lazy_pinned_hook

use_memo all

Affects hooks::memo

use_mut all

Affects hooks::hook_mut

use_poll_next_update all

Affects hooks::poll_next_update

use_shared_ref use_shared_signal use_shared+?
use_state_with_updater UpdateState? all
use_uninitialized_hook all

Affects hooks::uninitialized_hook

UpdateState use_gen_update_state? use_shared_update_state? = use_state_with_updater
use_shared_update_state use_shared_call? use_shared_reducer? use_shared_set? use_shared_toggle? = UpdateState
use_shared_update_state+ use_shared+? = use_shared_call, use_shared_reducer, use_shared_set, use_shared_toggle
use_shared_call use_shared_reducer use_shared_update_state+? = use_shared_update_state
use_shared_set use_shared_toggle use_shared_update_state+? = use_shared_update_state
use_gen_update_state use_gen_call? use_gen_reducer? use_gen_set? use_gen_toggle? = UpdateState

Enables hooks-gen

use_gen_update_state+ use_gen+? = use_gen_call, use_gen_reducer, use_gen_set, use_gen_toggle
use_gen_call use_gen_reducer use_gen_update_state+? = use_gen_update_state
use_gen_set use_gen_toggle use_gen_update_state+? = use_gen_update_state
use_gen_ref use_gen_signal use_gen+?

Enables hooks-gen

use_shared+ all = use_shared_ref, use_shared_signal, use_shared_update_state+
use_gen+ all = use_gen_ref, use_gen_signal, use_gen_update_state+

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

hooks-macro proc-macro?