-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (72 loc) · 1.88 KB
/
Cargo.toml
File metadata and controls
89 lines (72 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[package]
name = "poe-rust-sdk"
version = "0.1.0"
edition = "2021"
authors = ["Your Name <your.email@example.com>"]
license = "MIT OR Apache-2.0"
description = "A Rust SDK for building Poe server bots"
repository = "https://github.com/yourusername/poe-rust-sdk"
keywords = ["poe", "chatbot", "ai", "sdk", "api"]
categories = ["api-bindings", "web-programming"]
readme = "README.md"
[dependencies]
# Web framework
axum = { version = "0.7", features = ["macros"], optional = true }
tokio = { version = "1", features = ["full"] }
tower = { version = "0.4", features = ["timeout", "limit"], optional = true }
tower-http = { version = "0.5", features = ["cors", "trace"], optional = true }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# HTTP client
reqwest = { version = "0.12", features = ["json", "stream"], optional = true }
# Async utilities
futures = "0.3"
async-stream = "0.3"
async-trait = "0.1"
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Utilities
regex = "1.0"
once_cell = "1.0"
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1.0", features = ["v4", "serde"] }
# HTTP types
http = "1.0"
# Configuration
toml = "0.8"
serde_yaml = "0.9"
# Environment variables
dotenv = "0.15"
rand = "0.9.2"
[dev-dependencies]
tokio-test = "0.4"
hyper = { version = "1.0", features = ["full"] }
tower-test = "0.4"
tempfile = "3.0"
[[bin]]
name = "poe-bot-example"
path = "src/main.rs"
[lib]
name = "poe_rust_sdk"
path = "src/lib.rs"
[features]
default = ["server"]
server = ["axum", "tower", "tower-http"]
client = ["reqwest"]
full = ["server", "client"]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
[profile.dev]
opt-level = 0
debug = true
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]