Cargo Features
[dependencies]
translation-api-cn = { version = "0.1.3", default-features = false, features = ["baidu", "tencent", "niutrans"] }
- default = baidu, niutrans, tencent
-
These default features are set whenever
translation-api-cn
is added without
somewhere in the dependency tree.default-features = false - baidu default = md5
-
Affects
translation-api-cn::baidu
… - tencent default = hmac, serde_json, sha2, thiserror, time
-
Affects
translation-api-cn::tencent
… - niutrans default
-
Affects
translation-api-cn::niutrans
…
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.