- Add WeChatBotError enum for error handling with various error types. - Create a Result type alias for easier error management. - Implement ILinkClient for low-level API interactions including QR code generation, message sending, and updates retrieval. - Define message types and structures for handling incoming messages and media content. - Add tests for error handling and message parsing to ensure reliability. Co-authored-by: Copilot <copilot@github.com>
92 lines
1.7 KiB
TOML
92 lines
1.7 KiB
TOML
# 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 = "wechatbot"
|
|
version = "0.3.2"
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "WeChat iLink Bot SDK for Rust"
|
|
homepage = "https://github.com/corespeed-io/wechatbot"
|
|
documentation = "https://docs.rs/wechatbot"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
repository = "https://github.com/corespeed-io/wechatbot"
|
|
|
|
[lib]
|
|
name = "wechatbot"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "echo_bot"
|
|
path = "examples/echo_bot.rs"
|
|
|
|
[dependencies.aes]
|
|
version = "0.8"
|
|
|
|
[dependencies.base64]
|
|
version = "0.22"
|
|
|
|
[dependencies.dirs-next]
|
|
version = "2"
|
|
|
|
[dependencies.hex]
|
|
version = "0.4"
|
|
|
|
[dependencies.md-5]
|
|
version = "0.10"
|
|
|
|
[dependencies.rand]
|
|
version = "0.10"
|
|
|
|
[dependencies.reqwest]
|
|
version = "0.12"
|
|
default-features = false
|
|
features = ["json", "rustls-tls"]
|
|
|
|
[dependencies.serde]
|
|
version = "1"
|
|
features = ["derive"]
|
|
|
|
[dependencies.serde_json]
|
|
version = "1"
|
|
|
|
[dependencies.serde_repr]
|
|
version = "0.1"
|
|
|
|
[dependencies.thiserror]
|
|
version = "2"
|
|
|
|
[dependencies.tokio]
|
|
version = "1"
|
|
features = ["full"]
|
|
|
|
[dependencies.tracing]
|
|
version = "0.1"
|
|
|
|
[dependencies.urlencoding]
|
|
version = "2"
|
|
|
|
[dependencies.uuid]
|
|
version = "1"
|
|
features = ["v4"]
|
|
|
|
[dev-dependencies.tokio-test]
|
|
version = "0.4"
|
|
|
|
[dev-dependencies.tracing-subscriber]
|
|
version = "0.3"
|