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 default-features = false somewhere in the dependency tree.

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.

md5 baidu
sha2 tencent
hmac tencent
time tencent
thiserror tencent

Enables thiserror ^1

serde_json tencent