[package]
edition = "2021"
rust-version = "1.70"
name = "wechat-mp-sdk"
version = "0.3.0"
build = false
exclude = [
".github/",
"tests/fixtures/",
".sisyphus/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WeChat Mini Program SDK for Rust"
homepage = "https://github.com/infinitete/wechat-mp-sdk"
documentation = "https://docs.rs/wechat-mp-sdk"
readme = "README.md"
keywords = [
"wechat",
"miniprogram",
"sdk",
"api",
]
categories = [
"api-bindings",
"web-programming",
]
license = "MIT"
repository = "https://github.com/infinitete/wechat-mp-sdk"
[features]
default = ["rustls-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]
[lib]
name = "wechat_mp_sdk"
path = "src/lib.rs"
[[example]]
name = "analytics_security_usage"
path = "examples/analytics_security_usage.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[example]]
name = "facade_category_methods"
path = "examples/facade_category_methods.rs"
[[example]]
name = "login_flow"
path = "examples/login_flow.rs"
[[example]]
name = "message_send"
path = "examples/message_send.rs"
[[example]]
name = "operations_openapi_usage"
path = "examples/operations_openapi_usage.rs"
[[test]]
name = "api_tests"
path = "tests/api_tests.rs"
[[test]]
name = "crypto_tests"
path = "tests/crypto_tests.rs"
[[test]]
name = "endpoint_contract_tests"
path = "tests/endpoint_contract_tests.rs"
[[test]]
name = "http_contract_tests"
path = "tests/http_contract_tests.rs"
[[test]]
name = "mock_tests"
path = "tests/mock_tests.rs"
[[test]]
name = "parity_baseline_tests"
path = "tests/parity_baseline_tests.rs"
[[test]]
name = "qrcode_tests"
path = "tests/qrcode_tests.rs"
[[test]]
name = "reliability_tests"
path = "tests/reliability_tests.rs"
[[test]]
name = "token_tests"
path = "tests/token_tests.rs"
[dependencies.aes]
version = "0.8"
[dependencies.base64]
version = "0.22"
[dependencies.cbc]
version = "0.1"
[dependencies.http]
version = "1"
[dependencies.log]
version = "0.4"
[dependencies.percent-encoding]
version = "2"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"multipart",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"sync",
"time",
"rt",
"macros",
]
[dependencies.tower]
version = "0.5"
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.wiremock]
version = "0.6"