forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
103 lines (86 loc) · 3.29 KB
/
Cargo.toml
File metadata and controls
103 lines (86 loc) · 3.29 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
[package]
name = "no-example-v3"
version = "0.0.1"
authors = ["OpenAPI Generator team and contributors"]
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
# Override this license by providing a License Object in the OpenAPI.
license = "Unlicense"
edition = "2018"
[features]
default = ["client", "server"]
client = [
"hyper", "hyper-util/http1", "hyper-util/http2", "hyper-openssl", "hyper-tls", "native-tls", "openssl", "url"
]
server = [
"serde_ignored", "hyper", "regex", "percent-encoding", "url", "lazy_static"
]
cli = [
"anyhow", "clap", "clap-verbosity-flag", "simple_logger", "tokio"
]
conversion = ["frunk", "frunk_derives", "frunk_core", "frunk-enum-core", "frunk-enum-derive"]
[target.'cfg(any(target_os = "macos", target_os = "windows", target_os = "ios"))'.dependencies]
native-tls = { version = "0.2", optional = true }
hyper-tls = { version = "0.6", optional = true }
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dependencies]
hyper-openssl = { version = "0.10", optional = true }
openssl = { version = "0.10", optional = true }
[dependencies]
# Common
async-trait = "0.1.88"
chrono = { version = "0.4", features = ["serde"] }
futures = "0.3"
swagger = { version = "7.0.0-rc3", features = ["serdejson", "server", "client", "tls"] }
headers = "0.4.0"
log = "0.4.27"
mime = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
validator = { version = "0.20", features = ["derive"] }
# Crates included if required by the API definition
# Common between server and client features
bytes = "1.10.1"
http-body-util = "0.1.3"
hyper = { version = "1.6", features = ["full"], optional = true }
hyper-util = { version = "0.1.17", features = ["service"] }
serde_ignored = { version = "0.1.14", optional = true }
url = { version = "2.5", optional = true }
# Client-specific
tower-service = "0.3.3"
# Server, and client callback-specific
lazy_static = { version = "1.5", optional = true }
percent-encoding = { version = "2.3.1", optional = true }
regex = { version = "1.12", optional = true }
# CLI-specific
anyhow = { version = "1", optional = true }
clap = { version = "4.5", features = ["env"], optional = true }
clap-verbosity-flag = { version = "3.0", optional = true }
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
tokio = { version = "1.48", features = ["rt-multi-thread", "macros"], optional = true }
# Conversion
frunk = { version = "0.4.3", optional = true }
frunk_derives = { version = "0.4.3", optional = true }
frunk_core = { version = "0.4.3", optional = true }
frunk-enum-derive = { version = "0.3.0", optional = true }
frunk-enum-core = { version = "0.3.0", optional = true }
[dev-dependencies]
always_send = "0.1.1"
clap = "4.5"
env_logger = "0.11"
tokio = { version = "1.48", features = ["full"] }
native-tls = "0.2"
pin-project = "1.1.10"
# Bearer authentication, used in examples
jsonwebtoken = "9.3.1"
[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
tokio-openssl = "0.6"
openssl = "0.10"
[[example]]
name = "client"
required-features = ["client"]
[[example]]
name = "server"
required-features = ["server"]
[[bin]]
name = "no-example-v3"
path = "bin/cli.rs"
required-features = ["client", "cli"]