Cargo Features
[dependencies]
v_utils = { version = "2.6.4", default-features = false, features = ["io", "xdg", "cli", "trades", "macros", "tracing", "distributions", "wasm", "lite", "full", "async-sse", "bytes", "libc", "quote", "reqwest"] }
- default = lite
-
The
lite
feature is set by default wheneverv_utils
is added without
somewhere in the dependency tree.default-features = false - io lite
-
Enables dirs
Affects
v_utils::io
… - xdg full?
-
have to separate it, because
xdg
lib behaves weirdly under wasmEnables xdg, xdg of v_utils_macros
- cli full?
-
Enables config, cli of v_utils_macros
- trades lite
-
Affects
v_utils::trades
… - macros lite = v_utils_macros
- tracing lite
-
Enables tracing-error, tracing-log, tracing-subscriber, and xdg
Affects
utils::tracing
… - distributions full?
-
Enables rand and rand_distr
Affects
v_utils::distributions
… - wasm
-
Enables console_error_panic_hook and console_log
- lite default full? = io, macros, tracing, trades
-
tokio:
optional
by default only enable features that play with wasm.
Affects
v_utils::prelude
… - full = cli, distributions, lite, xdg
-
console-subscriber also is pulling tokio with
mio
, breaking wasm buildsEnables console-subscriber, full of tokio
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.
- async-sse implicit feature
-
Enables async-sse
async-sse:
Async Server Sent Event parser and encoder
- bytes implicit feature
-
Enables bytes
bytes:
Types and traits for working with bytes
- libc implicit feature
-
Enables libc
libc:
Raw FFI bindings to platform libraries like libc
- quote implicit feature
-
Enables quote
quote:
Quasi-quoting macro quote!(...)
- reqwest implicit feature
-
Enables reqwest
reqwest:
higher level HTTP client library
- v_utils_macros cli? macros? xdg?