forked from openabdev/openab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (39 loc) · 1.62 KB
/
Copy pathCargo.toml
File metadata and controls
47 lines (39 loc) · 1.62 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
[workspace]
members = ["crates/openab-core", "crates/openab-gateway"]
[package]
name = "openab"
version = "0.9.0"
edition = "2021"
license = "MIT"
[dependencies]
openab-core = { path = "crates/openab-core", default-features = false }
openab-gateway = { path = "crates/openab-gateway", default-features = false, optional = true }
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["json", "env-filter"] }
clap = { version = "4", features = ["derive"] }
anyhow = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
async-trait = "0.1"
serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "model", "rustls_backend", "cache"] }
[features]
# Default: core only (Discord + Slack). Gateway ships as separate binary.
default = ["discord", "slack", "secrets-aws", "agentcore"]
# Opt-in: compile all gateway adapters into a single unified binary
unified = ["telegram", "line", "feishu", "googlechat", "wecom", "teams"]
# Core adapters
discord = ["openab-core/discord"]
slack = ["openab-core/slack"]
# Core optional features
secrets-aws = ["openab-core/secrets-aws"]
agentcore = ["openab-core/agentcore"]
# Gateway adapters (each pulls in the gateway crate)
telegram = ["dep:openab-gateway", "openab-gateway/telegram"]
line = ["dep:openab-gateway", "openab-gateway/line"]
feishu = ["dep:openab-gateway", "openab-gateway/feishu"]
googlechat = ["dep:openab-gateway", "openab-gateway/googlechat"]
wecom = ["dep:openab-gateway", "openab-gateway/wecom"]
teams = ["dep:openab-gateway", "openab-gateway/teams"]
[dev-dependencies]
tempfile = "3.27.0"