-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
147 lines (119 loc) · 3.38 KB
/
Cargo.toml
File metadata and controls
147 lines (119 loc) · 3.38 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[package]
name = "uxc"
version = "0.12.4"
edition = "2021"
authors = ["UXC Contributors"]
description = "Universal X-Protocol CLI for URL-first schema discovery and invocation across OpenAPI, gRPC, GraphQL, MCP, and JSON-RPC"
license = "MIT"
repository = "https://github.com/holon-run/uxc"
homepage = "https://github.com/holon-run/uxc"
readme = "README.md"
keywords = ["cli", "rpc", "openapi", "graphql", "mcp"]
categories = ["command-line-utilities", "development-tools"]
[dependencies]
# Dependency overrides for older Rust version
getrandom = "0.2"
# CLI Framework
clap = { version = "4.4", features = ["derive"] }
clap_complete = "4.4"
# HTTP Client
reqwest = { version = "0.12", features = ["json", "stream", "multipart", "rustls-tls", "gzip", "brotli", "deflate"], default-features = false }
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
url = "2.4"
# JSON/Serde
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Base64 encoding for basic auth
base64 = "0.21"
ed25519-dalek = { version = "2.1", features = ["pkcs8", "pem"] }
hmac = "0.12"
jsonwebtoken = "9"
p256 = { version = "0.13", features = ["pem", "pkcs8"] }
percent-encoding = "2.3"
sha2 = "0.10"
# TOML Support
toml = "0.8"
# Async Runtime
tokio = { version = "1.35", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec"] }
tokio-stream = { version = "0.1", features = ["net"] }
tokio-tungstenite = { version = "0.24", features = ["rustls-tls-webpki-roots"] }
async-trait = "0.1"
futures = "0.3"
# Web server for test servers
axum = { version = "0.7", optional = true, features = ["ws"] }
# Error Handling
anyhow = "1.0"
thiserror = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Regex for log redaction
regex = "1.10"
# OpenAPI Support
openapiv3 = "1.0"
# GraphQL Support
graphql_client = "0.13"
# gRPC Support
tonic = "0.10"
prost = "0.12"
tonic-reflection = "0.10"
tower = "0.4"
http = "0.2"
http-body = "0.4"
hyper = "0.14"
prost-types = "0.12"
# MCP Support (placeholder - adjust as needed)
# mcp-sdk = "0.1"
[dev-dependencies]
tokio-test = "0.4"
mockito = "1.2"
# tempfile 3.10 has issues with this project's pinned getrandom 0.2, use older version
tempfile = ">=3.8, <3.10"
# CLI testing
assert_cmd = "2.0"
predicates = "3.0"
serial_test = "3.2"
[[bin]]
name = "uxc"
path = "src/main.rs"
# Test server binaries
[[bin]]
name = "uxc-test-openapi-server"
path = "src/bin/uxc-test-openapi-server.rs"
required-features = ["test-server"]
[[bin]]
name = "uxc-test-graphql-server"
path = "src/bin/uxc-test-graphql-server.rs"
required-features = ["test-server"]
[[bin]]
name = "uxc-test-jsonrpc-server"
path = "src/bin/uxc-test-jsonrpc-server.rs"
required-features = ["test-server"]
[[bin]]
name = "uxc-test-websocket-server"
path = "src/bin/uxc-test-websocket-server.rs"
required-features = ["test-server"]
[lib]
name = "uxc"
path = "src/lib.rs"
[features]
default = []
test-server = ["axum"]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
[[bin]]
name = "uxc-test-grpc-server"
path = "src/bin/uxc-test-grpc-server.rs"
required-features = ["test-server"]
[[bin]]
name = "uxc-test-mcp-http-server"
path = "src/bin/uxc-test-mcp-http-server.rs"
required-features = ["test-server"]
[[bin]]
name = "uxc-test-mcp-stdio-server"
path = "src/bin/uxc-test-mcp-stdio-server.rs"
required-features = ["test-server"]