# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "youdao" version = "0.3.0" authors = ["FengYouJun"] description = "有道API" readme = "Readme.md" keywords = [ "youdao", "translate", ] license = "MIT" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.release] opt-level = "s" codegen-units = 16 debug = false panic = "abort" incremental = true strip = true [dependencies.anyhow] version = "1.0.66" [dependencies.base64] version = "0.13.1" optional = true [dependencies.chrono] version = "0.4.22" [dependencies.md-5] version = "0.10.5" optional = true [dependencies.reqwest] version = "0.11.12" features = ["json"] [dependencies.serde] version = "1.0.147" features = ["derive"] [dependencies.serde_json] version = "1.0.87" [dependencies.sha256] version = "1.1.1" [dependencies.tokio] version = "1" features = [ "rt", "rt-multi-thread", "macros", "fs", ] optional = true [dev-dependencies.dotenv] version = "0.15.0" [features] aio = [ "tokio", "reqwest/tokio-rustls", ] blocking = ["reqwest/blocking"] default = [ "blocking", "image", ] image = [ "md-5", "base64", ]