# 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 = "baidu_trans" version = "0.7.5" authors = ["FengYouJun"] description = "百度翻译API" homepage = "https://github.com/FengYouJun520/baidu_trans" documentation = "https://docs.rs/baidu_trans" readme = "Readme.md" keywords = [ "baidu", "translate", ] license = "MIT" repository = "https://github.com/FengYouJun520/baidu_trans" [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.chrono] version = "0.4.22" [dependencies.md-5] version = "0.10.5" [dependencies.reqwest] version = "0.11.12" features = ["json"] [dependencies.serde] version = "1.0.147" features = ["derive"] [dependencies.serde_json] version = "1.0.87" [dependencies.tokio] version = "1" features = [ "macros", "fs", ] optional = true [dev-dependencies.dotenv] version = "0.15.0" [features] aio = [ "tokio", "reqwest/tokio-rustls", ] blocking = ["reqwest/blocking"] default = ["blocking"] doc = ["reqwest/multipart"] domain = [] image = ["reqwest/multipart"]