-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
133 lines (112 loc) · 3.26 KB
/
Cargo.toml
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
[package]
description = "Rust SDK for interacting with the Speakeasy Api platform"
documentation = "https://docs.rs/speakeasy-rust-sdk"
edition = "2021"
homepage = "https://www.speakeasyapi.dev"
license = "Apache-2.0"
name = "speakeasy-rust-sdk"
repository = "https://github.com/speakeasy-api/speakeasy-rust-sdk"
version = "0.5.0"
exclude = [
"examples",
"testserver",
"/.*",
]
[package.metadata.docs.rs]
features = ["actix4"]
[features]
actix4 = [
"dep:actix-web",
"dep:futures",
"dep:pin-project",
"dep:actix-service",
"dep:actix-http",
"tokio",
]
axum = [
"dep:axum",
"dep:axum-extra",
"dep:futures",
"dep:http-body",
"dep:pin-project",
"tokio",
]
actix3 = [
"dep:actix3",
"dep:actix-service1",
"dep:actix-http2",
"dep:futures",
"dep:pin-project",
"tokio02",
]
tokio = [
"dep:tokio",
"dep:tonic",
"dep:tower",
"dep:hyper",
"dep:hyper-openssl",
"dep:speakeasy-protos-tokio-latest",
]
tokio02 = [
"dep:tower03",
"dep:tokio02",
"dep:tonic03",
"dep:hyper13",
"dep:speakeasy-protos-tokio-02",
"dep:hyper-openssl08",
]
custom_transport = []
mock = []
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# error handling
thiserror = "1.0"
# utils
bytes = "1.2.1"
chrono = {version = "0.4.22", default-features = false, features = ["alloc", "std", "clock"]}
har = "0.8.0"
once_cell = "1.14.0"
regex = "1.6.0"
uuid = {version = "1.1.2", features = ["v4", "fast-rng"]}
# serialization / deserialization
serde = {version = "1.0.144", features = ["derive"]}
serde_json = "1.0.85"
# logging
log = "0.4.17"
url = "2.3.1"
# http
http = "0.2.8"
mime = "0.3.16"
## web frameworks middleware
# actix 4
actix-http = {version = "3.2", optional = true}
actix-service = {version = "2.0", optional = true}
actix-web = {version = "4.0", optional = true}
# axum
axum = {version = "0.6", features = ["matched-path"], optional = true}
axum-extra = {version = "0.4", features = ["cookie"], optional = true}
# latest deps
http-body = {version = "0.4", optional = true}
hyper = {version = "0.14", optional = true}
hyper-openssl = {version = "0.9", optional = true}
speakeasy-protos-tokio-latest = {version = "0.2.0", optional = true}
tokio = {version = "1.21", features = ["sync"], optional = true}
tonic = {version = "0.8", features = ["transport", "tls"], optional = true}
tower = {version = "0.4", optional = true}
# actix 3
actix-http2 = {package = "actix-http", version = "2", optional = true}
actix-service1 = {package = "actix-service", version = "1", optional = true}
actix3 = {package = "actix-web", version = "3", optional = true}
tokio02 = {package = "tokio", version = "0.2", features = ["sync", "rt-core"], optional = true}
# grpc actix3 compat
hyper-openssl08 = {package = "hyper-openssl", version = "0.8.0", optional = true}
hyper13 = {package = "hyper", version = "0.13.4", features = ["stream"], optional = true}
speakeasy-protos-tokio-02 = {version = "0.2.0", optional = true}
tonic03 = {package = "tonic", version = "0.3", features = ["transport", "tls"], optional = true}
tower03 = {package = "tower", version = "0.3", optional = true}
# async
futures = {version = "0.3", optional = true}
pin-project = {version = "1", optional = true}
[dev-dependencies]
maplit = "1.0.2"
pretty_assertions = "1.3"