-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
43 lines (35 loc) · 1.27 KB
/
Copy pathCargo.toml
File metadata and controls
43 lines (35 loc) · 1.27 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
[package]
name = "tangle-inference-core"
version = "0.1.0"
edition = "2021"
description = "Shared infrastructure for Tangle inference blueprints"
[features]
default = ["billing", "http", "metrics"]
billing = ["dep:alloy", "dep:k256", "dep:hex", "dep:async-trait"]
http = ["dep:axum", "dep:tower-http"]
metrics = ["dep:prometheus"]
[dependencies]
# Always required
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
anyhow = "1"
# Billing (alloy + crypto)
alloy = { version = "1", features = ["provider-http", "signer-local", "contract", "sol-types"], optional = true }
k256 = { version = "0.13", features = ["ecdsa"], optional = true }
hex = { version = "0.4", optional = true }
async-trait = { version = "0.1", optional = true }
# HTTP (axum server helpers)
axum = { version = "0.7", optional = true }
tower-http = { version = "0.6", features = ["cors", "limit", "timeout", "trace"], optional = true }
# Metrics (prometheus)
prometheus = { version = "0.13", optional = true }
# Always required for HTTP client (health checks, billing RPC)
reqwest = { version = "0.12", features = ["json"] }
[dev-dependencies]
tempfile = "3"
futures = "0.3"
[[example]]
name = "minimal_operator"
path = "examples/minimal_operator.rs"