Skip to content

Commit 4217f51

Browse files
authored
Reduce dependency features (#486)
This saves about 12 seconds of build times in simple functions. - Stop compiling Tower full - Remove server and runtime features from hyper Signed-off-by: David Calavera <[email protected]>
1 parent 80c0f84 commit 4217f51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lambda-runtime-api-client/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ readme = "README.md"
1212

1313
[dependencies]
1414
http = "0.2"
15-
hyper = { version = "0.14", features = ["http1", "client", "server", "stream", "runtime"] }
15+
hyper = { version = "0.14", features = ["http1", "client", "stream", "tcp"] }
1616
tower-service = "0.3"
1717
tokio = { version = "1.0", features = ["io-util"] }

lambda-runtime/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ simulated = []
1616

1717
[dependencies]
1818
tokio = { version = "1.0", features = ["macros", "io-util", "sync", "rt-multi-thread"] }
19-
hyper = { version = "0.14", features = ["http1", "client", "server", "stream", "runtime"] }
19+
hyper = { version = "0.14", features = ["http1", "client", "stream", "tcp"] }
2020
serde = { version = "1", features = ["derive"] }
2121
serde_json = "^1"
2222
bytes = "1.0"
2323
http = "0.2"
2424
async-stream = "0.3"
2525
tracing = { version = "0.1", features = ["log"] }
26-
tower = { version = "0.4", features = ["full"] }
26+
tower = { version = "0.4", features = ["util"] }
2727
tokio-stream = "0.1.2"
2828
lambda_runtime_api_client = { version = "0.5", path = "../lambda-runtime-api-client" }
2929

0 commit comments

Comments
 (0)