# 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 = "wechat-vendor-sdk" version = "0.3.22" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "wechat miniprogram and wechat corp sdk (微信小程序、公众号和企业微信部分 sdk 封装)" documentation = "https://docs.rs/wechat-vendor-sdk/" readme = "README.md" keywords = ["wechat"] license = "MIT" repository = "https://github.com/XHMM/wechat-vendor-sdk-rs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "wechat_vendor_sdk" path = "src/lib.rs" [[example]] name = "wxcorp" path = "examples/wxcorp.rs" required-features = ["wxcorp"] [[example]] name = "wxmini" path = "examples/wxmini.rs" required-features = ["wxmini"] [[example]] name = "wxpay" path = "examples/wxpay.rs" required-features = ["wxpay"] [dependencies.aes-gcm] version = "0.10.3" optional = true [dependencies.base64] version = "0.22.1" optional = true [dependencies.chrono] version = "0.4.22" optional = true [dependencies.rand] version = "0.8.5" optional = true [dependencies.reqwest] version = "0.12.3" features = ["json"] [dependencies.rsa] version = "0.9.6" features = ["sha2"] optional = true [dependencies.serde] version = "1.0.193" features = ["derive"] [dependencies.serde_json] version = "1.0.108" [dependencies.thiserror] version = "1.0.58" [dependencies.tracing] version = "0.1.40" [dev-dependencies.tokio] version = "1.35.1" features = ["full"] [dev-dependencies.tracing-subscriber] version = "0.3.18" [features] all = [ "wxcorp", "wxmini", "wxpay", ] default = [] wxcorp = [] wxmini = [] wxpay = [ "dep:rand", "dep:rsa", "dep:base64", "dep:chrono", "dep:aes-gcm", ]