Cargo Features
[dependencies]
bitbar = { version = "0.10.1", default-features = false, features = ["assume-flavor", "tokio", "base64", "css-colors", "image", "serenity"] }
- default = tokio
-
The
tokio
feature is set by default wheneverbitbar
is added without
somewhere in the dependency tree.default-features = false - assume-flavor = static_assertions
- tokio default = futures
-
Enables tokio, tokio of bitbar-derive
Affects
swiftbar::Stream
,bitbar::AsyncMainOutput
…
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.
- base64 implicit feature
-
Enables base64 ^0.21
base64:
encodes and decodes base64 as bytes or utf8
- css-colors implicit feature
-
Enables css-colors
css-colors:
A Rust converter to transform CSS colors
- image implicit feature
-
Enables image ^0.24
image:
Imaging library. Provides basic image processing and encoders/decoders for common image formats.
- serenity implicit feature
-
Enables serenity ^0.11
serenity:
A Rust library for the Discord API
- futures tokio
- static_assertions assume-flavor?