Cargo Features
[dependencies]
lambda_runtime = { version = "1.1.1", default-features = false, features = ["tracing", "opentelemetry", "anyhow", "eyre", "miette", "graceful-shutdown", "concurrency-tokio"] }
- default = tracing
-
The
tracingfeature is set by default wheneverlambda_runtimeis added withoutsomewhere in the dependency tree.default-features = false - tracing default
-
enables access to the Tracing utilities
Enables tracing of lambda_runtime_api_client
- opentelemetry = opentelemetry-semantic-conventions
-
enables access to the OpenTelemetry layers and utilities
- anyhow
-
enables From<T> for Diagnostic for anyhow error types, see README.md for more info
Enables anyhow
- eyre
-
enables From<T> for Diagnostic for eyre error types, see README.md for more info
Enables eyre
- miette
-
enables From<T> for Diagnostic for miette error types, see README.md for more info
Enables miette
- graceful-shutdown
-
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
Enables lambda-extension, rt and signal of tokio
Affects
lambda_runtime::spawn_graceful_shutdown_handler⦠- concurrency-tokio
-
Affects
lambda_runtime::run_concurrentβ¦
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.