Cargo Features
[dependencies]
baidu_trans = { version = "0.7.5", default-features = false, features = ["image", "domain", "blocking", "aio", "doc"] }
- default = blocking
-
The
blocking
feature is set by default wheneverbaidu_trans
is added without
somewhere in the dependency tree.default-features = false - image
-
Enables multipart of reqwest ^0.11.12
Affects
baidu_trans::image
… - domain
-
Affects
baidu_trans::domain
… - blocking default
-
Enables blocking of reqwest ^0.11.12
Affects
baidu_trans::blocking
… - aio = tokio
-
Enables tokio-rustls of reqwest ^0.11.12
Affects
baidu_trans::aio
… - doc
-
Enables multipart of reqwest ^0.11.12
Affects
baidu_trans::document
…
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.