Cargo Features

[dependencies]
hakuban = { version = "0.7.3", default-features = false, features = ["ffi", "wasm", "tokio-runtime", "capi", "musl", "env_logger"] }
default = env_logger, ffi, openssl, tokio-runtime

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

ffi default

Affects hakuban::ffi

wasm = console_error_panic_hook, console_log, js-sys, wasm-bindgen

Enables wasm-bindgen of instant

Affects hakuban::wasm

tokio-runtime default = async-tungstenite, tokio, tokio-native-tls, tokio-util, url

TODO: C-FEATURE: rename to "tokio" when "-Z namespaced-features" is not needed

Affects hakuban::tokio_runtime

Required by the hakuban-router binary

capi
musl = openssl-probe

Enables vendored of openssl

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.

env_logger default

Enables env_logger ^0.9

Affects logger::hakuban_logger_initialize

Required by the hakuban-router binary

console_log wasm?

Enables console_log ^0.2

Affects logger::hakuban_logger_initialize

tokio tokio-runtime
tokio-util tokio-runtime
tokio-native-tls tokio-runtime
async-tungstenite tokio-runtime

Enables async-tungstenite ^0.18

url tokio-runtime
wasm-bindgen wasm?
js-sys wasm?
console_error_panic_hook wasm?
openssl default musl?
openssl-probe musl?