-
Notifications
You must be signed in to change notification settings - Fork 391
Expand file tree
/
Copy pathCargo.toml
More file actions
84 lines (79 loc) · 3.16 KB
/
Cargo.toml
File metadata and controls
84 lines (79 loc) · 3.16 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
[package]
name = "lambda_runtime"
version = "1.1.1"
authors = [
"David Calavera <dcalaver@amazon.com>",
"Harold Sun <sunhua@amazon.com>",
]
description = "AWS Lambda Runtime"
edition = "2021"
rust-version = "1.84.0"
license = "Apache-2.0"
repository = "https://github.com/aws/aws-lambda-rust-runtime"
categories = ["web-programming::http-server"]
keywords = ["AWS", "Lambda", "API"]
readme = "../README.md"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] }
[features]
default = ["tracing"]
tracing = ["lambda_runtime_api_client/tracing"] # enables access to the Tracing utilities
opentelemetry = ["opentelemetry-semantic-conventions"] # enables access to the OpenTelemetry layers and utilities
anyhow = ["dep:anyhow"] # enables From<T> for Diagnostic for anyhow error types, see README.md for more info
eyre = ["dep:eyre"] # enables From<T> for Diagnostic for eyre error types, see README.md for more info
miette = ["dep:miette"] # enables From<T> for Diagnostic for miette error types, see README.md for more info
# TODO: remove tokio/rt and rt-multi-thread from non-feature-flagged dependencies in new breaking version, since they are unused:
# as well as default features
# https://github.com/aws/aws-lambda-rust-runtime/issues/984
graceful-shutdown = ["tokio/rt", "tokio/signal", "dep:lambda-extension"]
concurrency-tokio = []
[dependencies]
anyhow = { version = "1.0.86", optional = true }
async-stream = "0.3"
base64 = { workspace = true }
bytes = { workspace = true }
eyre = { version = "0.6.12", optional = true }
futures = { workspace = true }
http = { workspace = true }
http-body-util = { workspace = true }
http-serde = { workspace = true }
hyper = { workspace = true, features = ["http1", "client"] }
lambda-extension = { version = "1.0", path = "../lambda-extension", default-features = false, optional = true }
lambda_runtime_api_client = { version = "1.0.3", path = "../lambda-runtime-api-client", default-features = false }
miette = { version = "7.2.0", optional = true }
opentelemetry-semantic-conventions = { version = "0.31", optional = true, features = ["semconv_experimental"] }
pin-project = "1"
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "^1"
serde_path_to_error = "0.1.11"
tokio = { version = "1.46", features = [
"macros",
"io-util",
"sync",
"rt-multi-thread",
] }
tokio-stream = "0.1.2"
tower = { workspace = true, features = ["util"] }
tracing = { version = "0.1", features = ["log"] }
[dev-dependencies]
httpmock = "0.8.1"
hyper-util = { workspace = true, features = [
"client",
"client-legacy",
"http1",
"server",
"server-auto",
"tokio",
] }
# pin back to pre-1.2.1 to avoid breaking rust MSRV of 1.81:
# https://github.com/hsivonen/idna_adapter/commit/f948802e3a2ae936eec51886eefbd7d536a28791
idna_adapter = "=1.2.0"
# Self dependency to enable the graceful-shutdown feature for tests
lambda_runtime = { path = ".", features = ["tracing", "graceful-shutdown"] }
pin-project-lite = { workspace = true }
tracing-appender = "0.2"
tracing-capture = "0.1.0"
tracing-subscriber = { version = "0.3", features = ["registry"] }
tracing-test = "0.2"
[package.metadata.docs.rs]
all-features = true