-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
79 lines (66 loc) · 2.44 KB
/
Cargo.toml
File metadata and controls
79 lines (66 loc) · 2.44 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
[package]
name = "emx-llm"
version = "0.1.0"
edition = "2021"
authors = ["nzinfo <li.monan@gmail.com>"]
license = "MIT"
repository = "https://github.com/coreseekdev/emx-llm"
description = "LLM client library for EMX with OpenAI and Anthropic support"
[[bin]]
name = "emx-llm"
path = "src/bin/emx-llm/main.rs"
required-features = ["cli"]
[[bin]]
name = "emx-gate"
path = "src/bin/emx-gate.rs"
required-features = ["gate"]
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
futures = "0.3"
async-trait = "0.1"
async-stream = "0.3"
# HTTP client
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
toml = "0.8"
# Error handling
anyhow = "1.0"
thiserror = "2.0"
indexmap = { version = "2.0", features = ["serde"] }
# Logging
tracing = "0.1"
# Configuration
emx-config-core = { git = "https://github.com/coreseekdev/emx-config", version = "0.1.0" }
dirs = "6.0"
# TCL scripting for tool execution
# Note: Using local path for development, switch to git for release
rtcl-core = { path = "G:/src.tcl/rtcl/crates/rtcl-core", features = ["rtcl_std"] }
emx-mbox = { path = "../emx-mbox", optional = true }
# CLI dependencies (optional, only for cli feature)
clap = { version = "4", features = ["derive"], optional = true }
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
chrono = { version = "0.4", optional = true }
# Gateway dependencies (optional, only for gate feature)
uuid = { version = "1.0", features = ["v4"], optional = true }
axum = { version = "0.7", optional = true }
tower = { version = "0.4", optional = true }
tower-http = { version = "0.5", optional = true, features = ["trace", "cors"] }
hyper = { version = "1.0", optional = true }
http-body-util = { version = "0.1", optional = true }
[features]
default = []
# CLI feature - required for emx-llm binary
cli = ["clap", "tracing-subscriber", "chrono", "emx-mbox"]
# Gateway feature - required for emx-gate binary
gate = ["cli", "uuid", "axum", "tower", "tower-http", "hyper", "http-body-util"]
[dev-dependencies]
# HTTP mocking for testing
wiremock = "0.6"
# Txtar fixture format (same workspace)
emx-txtar = { git = "https://github.com/coreseekdev/emx-txtar" }
# E2E testing framework
emx-testspec = { git = "https://github.com/coreseekdev/emx-testspec" }