-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (61 loc) · 2.07 KB
/
Cargo.toml
File metadata and controls
72 lines (61 loc) · 2.07 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
[package]
name = "attested-tls"
version = "0.0.1"
edition = "2024"
license = "MIT"
description = "A remote-attested TLS protocol for secure communication with CVM services"
repository = "https://github.com/flashbots/attested-tls-proxy"
keywords = ["attested-TLS", "CVM", "TDX"]
[dependencies]
tokio = { version = "1.48.0", features = ["full"] }
tokio-rustls = { version = "0.26.4", default-features = false, features = [
"ring",
] }
sha2 = "0.10.9"
x509-parser = "0.18.0"
thiserror = "2.0.17"
webpki-roots = "1.0.4"
http = "1.3.1"
serde_json = "1.0.145"
tracing = "0.1.41"
parity-scale-codec = "3.7.5"
attestation = { path = "../attestation" }
# Used for websocket support
tokio-tungstenite = { version = "0.28.0", optional = true }
futures-util = { version = "0.3.31", optional = true }
# Used for JSON RPC support
alloy-rpc-client = { version = "1.1.3", optional = true }
tower-service = { version = "0.3.3", optional = true }
alloy-transport-http = { version = "1.4.3", features = ["hyper"], optional = true }
url = { version = "2.5.7", optional = true }
hyper = { version = "1.7.0", features = ["client", "http2"], optional = true }
hyper-util = { version = "0.1.17", features = ["tokio"], optional = true }
bytes = { version = "1.11.1", optional = true }
http-body-util = { version = "0.1.3", optional = true }
# Used by test helpers
rcgen = { version = "0.14.5", optional = true }
[dev-dependencies]
rcgen = "0.14.5"
tempfile = "3.23.0"
attestation = { path = "../attestation", features = ["test-helpers", "mock"] }
[features]
default = ["ws", "rpc"]
# Adds support for Microsoft Azure attestation generation and verification
azure = ["attestation/azure"]
# Adds websocket support
ws = ["tokio-tungstenite", "futures-util"]
# Adds JSON RPC support
rpc = [
"alloy-rpc-client",
"tower-service",
"alloy-transport-http",
"url",
"hyper",
"hyper-util",
"bytes",
"http-body-util",
"futures-util",
]
# Exposes helper functions for testing - do not enable in production as this allows dangerous configuration
test-helpers = ["rcgen", "attestation/test-helpers"]
mock = ["attestation/mock"]