Cargo Features
[dependencies]
youdao = { version = "0.3.0", default-features = false, features = ["image", "blocking", "aio"] }
- default = blocking, image
-
These default features are set whenever
youdao
is added without
somewhere in the dependency tree.default-features = false - image default = base64, md-5
-
Affects
youdao::ImageTranslateResult
,model::ResRegion
… - blocking default
-
Enables blocking of reqwest ^0.11.12
- aio = tokio
-
Enables tokio-rustls of reqwest ^0.11.12
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.