@@ -10,71 +10,77 @@ edition = "2018"
1010[features ]
1111default = [" client" , " server" ]
1212client = [
13- " hyper" , " url"
13+ " hyper" , " hyper-util/http1 " , " hyper-util/http2 " , " url"
1414]
1515server = [
1616 " serde_ignored" , " hyper" , " regex" , " percent-encoding" , " url" , " lazy_static"
1717]
1818cli = [
1919 " dialoguer" ,
20- " anyhow" , " clap-verbosity-flag" , " simple_logger" , " structopt " , " tokio"
20+ " anyhow" , " clap" , " clap -verbosity-flag" , " simple_logger" , " tokio"
2121]
2222conversion = [" frunk" , " frunk_derives" , " frunk_core" , " frunk-enum-core" , " frunk-enum-derive" ]
2323
2424[dependencies ]
2525# Common
26- async-trait = " 0.1.24 "
26+ async-trait = " 0.1.88 "
2727chrono = { version = " 0.4" , features = [" serde" ] }
2828futures = " 0.3"
29- swagger = { version = " 6.1" , features = [" serdejson" , " server" , " client" , " tcp" ] }
30- log = " 0.4.0"
29+ swagger = { version = " 7.0.0-rc2" , features = [" serdejson" , " server" , " client" ] }
30+ headers = " 0.4.0"
31+ log = " 0.4.27"
3132mime = " 0.3"
3233
3334serde = { version = " 1.0" , features = [" derive" ] }
3435serde_json = " 1.0"
35- validator = { version = " 0.16 " , features = [" derive" ] }
36+ validator = { version = " 0.20 " , features = [" derive" ] }
3637
3738# Crates included if required by the API definition
3839
3940# Common between server and client features
40- hyper = {version = " 0.14" , features = [" full" ], optional = true }
41- serde_ignored = {version = " 0.1.1" , optional = true }
42- url = {version = " 2.1" , optional = true }
41+ bytes = " 1.10.1"
42+ http-body-util = " 0.1.3"
43+ hyper = { version = " 1.6" , features = [" full" ], optional = true }
44+ hyper-util = { version = " 0.1.12" , features = [" service" ] }
45+ serde_ignored = { version = " 0.1.12" , optional = true }
46+ url = { version = " 2.5" , optional = true }
4347
4448# Client-specific
49+ tower-service = " 0.3.3"
4550
4651# Server, and client callback-specific
47- lazy_static = { version = " 1.4 " , optional = true }
48- percent-encoding = {version = " 2.1.0 " , optional = true }
49- regex = {version = " 1.3 " , optional = true }
52+ lazy_static = { version = " 1.5 " , optional = true }
53+ percent-encoding = { version = " 2.3.1 " , optional = true }
54+ regex = { version = " 1.11 " , optional = true }
5055
5156# CLI-specific
5257anyhow = { version = " 1" , optional = true }
53- clap-verbosity-flag = { version = " 0.3 " , optional = true }
54- simple_logger = { version = " 2 .0" , features = [ " stderr " ] , optional = true }
55- structopt = { version = " 0.3 " , optional = true }
56- tokio = { version = " 0.2 " , features = [" rt-threaded " , " macros" , " stream " ], optional = true }
58+ clap = { version = " 4.5 " , features = [ " env " ] , optional = true }
59+ clap-verbosity-flag = { version = " 3 .0" , optional = true }
60+ simple_logger = { version = " 5.0 " , features = [ " stderr " ] , optional = true }
61+ tokio = { version = " 1.45 " , features = [" rt-multi-thread " , " macros" ], optional = true }
5762dialoguer = { version = " 0.8" , optional = true }
5863
5964# Conversion
60- frunk = { version = " 0.4.0 " , optional = true }
61- frunk_derives = { version = " 0.4.0 " , optional = true }
62- frunk_core = { version = " 0.4.0 " , optional = true }
65+ frunk = { version = " 0.4.3 " , optional = true }
66+ frunk_derives = { version = " 0.4.3 " , optional = true }
67+ frunk_core = { version = " 0.4.3 " , optional = true }
6368frunk-enum-derive = { version = " 0.3.0" , optional = true }
6469frunk-enum-core = { version = " 0.3.0" , optional = true }
6570
6671# Bearer authentication
67- jsonwebtoken = { version = " 9.3.0 " , optional = false }
72+ jsonwebtoken = { version = " 9.3.1 " , optional = false }
6873
6974[dev-dependencies ]
70- clap = " 2.25"
75+ always_send = " 0.1.1"
76+ clap = " 4.5"
7177env_logger = " 0.11"
72- tokio = { version = " 1.14 " , features = [" full" ] }
73- native-tls = " 0.2 "
78+ tokio = { version = " 1.45 " , features = [" full" ] }
79+ pin-project = " 1.1.10 "
7480
75- [target . 'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))' . dev-dependencies ]
76- tokio-openssl = " 0.6 "
77- openssl = " 0.10 "
81+ [[ example ] ]
82+ name = " client "
83+ required-features = [ " client " ]
7884
7985[[example ]]
8086name = " server"
0 commit comments