[package]
edition = "2024"
rust-version = "1.85"
name = "wx-rust-common"
version = "0.1.0"
authors = ["wandl <hiwepy@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WxRust 公共基础设施:错误模型、token/执行引擎、HTTP 抽象、会话、重复检查(对应 weixin-java-common)"
homepage = "https://github.com/easy-4-rust/WxRust"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/easy-4-rust/WxRust"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
redis = ["dep:redis"]
[lib]
name = "wx_rust_common"
path = "src/lib.rs"
[[test]]
name = "circuit_breaker_test"
path = "tests/circuit_breaker_test.rs"
[[test]]
name = "clock_test"
path = "tests/clock_test.rs"
[[test]]
name = "core_utils"
path = "tests/core_utils.rs"
[[test]]
name = "coverage_boost_common"
path = "tests/coverage_boost_common.rs"
[[test]]
name = "coverage_boost_error_enum"
path = "tests/coverage_boost_error_enum.rs"
[[test]]
name = "coverage_boost_error_enum_rest"
path = "tests/coverage_boost_error_enum_rest.rs"
[[test]]
name = "execute_pipeline_test"
path = "tests/execute_pipeline_test.rs"
[[test]]
name = "execute_stream_test"
path = "tests/execute_stream_test.rs"
[[test]]
name = "http_transport_test"
path = "tests/http_transport_test.rs"
[[test]]
name = "phase1_batch1_common_core"
path = "tests/phase1_batch1_common_core.rs"
[[test]]
name = "redis_integration_test"
path = "tests/redis_integration_test.rs"
[[test]]
name = "rust_obligation_value_add"
path = "tests/rust_obligation_value_add.rs"
[[test]]
name = "security_rsa_mitigation_test"
path = "tests/security_rsa_mitigation_test.rs"
[[test]]
name = "source_parity_bean_error"
path = "tests/source_parity_bean_error.rs"
[[test]]
name = "source_parity_crypto_util"
path = "tests/source_parity_crypto_util.rs"
[[test]]
name = "source_parity_fs_utils"
path = "tests/source_parity_fs_utils.rs"
[[bench]]
name = "crypto_bench"
path = "benches/crypto_bench.rs"
harness = false
[[bench]]
name = "pipeline_concurrency_bench"
path = "benches/pipeline_concurrency_bench.rs"
harness = false
[dependencies.aes]
version = "0.9.2"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.base64]
version = "0.23.0"
[dependencies.bytes]
version = "1.10.0"
[dependencies.cbc]
version = "0.2.1"
[dependencies.chrono]
version = "0.4.45"
features = [
"clock",
"std",
]
default-features = false
[dependencies.dashmap]
version = "6.1.0"
[dependencies.futures-util]
version = "0.3.32"
[dependencies.hex]
version = "0.4.3"
[dependencies.hmac]
version = "0.13.0"
[dependencies.mime]
version = "0.3.17"
[dependencies.once_cell]
version = "1.21.0"
[dependencies.percent-encoding]
version = "2.3.2"
[dependencies.quick-xml]
version = "0.41.0"
[dependencies.rand]
version = "0.10.2"
[dependencies.redis]
version = "0.29.0"
optional = true
[dependencies.reqwest]
version = "0.13.4"
features = [
"json",
"rustls",
"stream",
"multipart",
]
default-features = false
[dependencies.rsa]
version = "=0.9.10"
features = [
"pem",
"sha2",
"std",
]
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.150"
features = ["preserve_order"]
[dependencies.sha1]
version = "0.11.0"
[dependencies.sha2]
version = "0.11.0"
[dependencies.tempfile]
version = "3.27.0"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.52.4"
features = [
"io-util",
"macros",
"net",
"rt",
"sync",
"time",
]
[dependencies.tracing]
version = "0.1.44"
[dependencies.url]
version = "2.5.8"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.rand_core]
version = "0.6"
features = ["getrandom"]
[lints.clippy]
field_reassign_with_default = "allow"
module_inception = "allow"
too_many_arguments = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"