lambda-simulator 0.1.6

High-fidelity AWS Lambda Runtime API simulator for testing Lambda runtimes and extensions locally
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.92"
name = "lambda-simulator"
version = "0.1.6"
authors = ["Daniel Verrall"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-fidelity AWS Lambda Runtime API simulator for testing Lambda runtimes and extensions locally"
documentation = "https://docs.rs/lambda-simulator"
readme = "README.md"
keywords = [
    "lambda",
    "aws",
    "testing",
    "simulator",
    "runtime",
]
categories = [
    "development-tools::testing",
    "simulation",
]
license = "MIT"
repository = "https://github.com/djvcom/lambda-observability"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[lib]
name = "lambda_simulator"
path = "src/lib.rs"

[[bin]]
name = "test_extension"
path = "tests/fixtures/extension.rs"
test = false
bench = false

[[bin]]
name = "test_runtime"
path = "tests/fixtures/runtime.rs"
test = false
bench = false

[[test]]
name = "concurrency_test"
path = "tests/concurrency_test.rs"

[[test]]
name = "demo_test"
path = "tests/demo_test.rs"

[[test]]
name = "e2e_process_spawn_test"
path = "tests/e2e_process_spawn_test.rs"

[[test]]
name = "error_scenarios_test"
path = "tests/error_scenarios_test.rs"

[[test]]
name = "extension_readiness_test"
path = "tests/extension_readiness_test.rs"

[[test]]
name = "extensions_test"
path = "tests/extensions_test.rs"

[[test]]
name = "freeze_demo_test"
path = "tests/freeze_demo_test.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "invocation_lifecycle_test"
path = "tests/invocation_lifecycle_test.rs"

[[test]]
name = "process_spawn_test"
path = "tests/process_spawn_test.rs"

[[test]]
name = "real_lambda_test"
path = "tests/real_lambda_test.rs"

[[test]]
name = "shutdown_test"
path = "tests/shutdown_test.rs"

[[test]]
name = "telemetry_test"
path = "tests/telemetry_test.rs"

[[test]]
name = "timing_test"
path = "tests/timing_test.rs"

[[bench]]
name = "invocation"
path = "benches/invocation.rs"
harness = false

[dependencies.axum]
version = "0.8"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.http-body]
version = "1.0"

[dependencies.nix]
version = "0.31"
features = [
    "signal",
    "process",
]

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "blocking",
]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "net",
]

[dependencies.tower]
version = "0.5"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.23"
features = [
    "v4",
    "serde",
    "v4",
]

[dev-dependencies.aws_lambda_events]
version = "1.1"

[dev-dependencies.bytes]
version = "1.11"

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.lambda_runtime]
version = "1.1"
features = ["tracing"]

[dev-dependencies.mock-collector]
version = "0.2.11"

[dev-dependencies.opentelemetry]
version = "0.31"

[dev-dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "grpc-tonic",
    "http-proto",
    "reqwest-blocking-client",
    "trace",
    "logs",
    "metrics",
]
default-features = false

[dev-dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]

[dev-dependencies.proptest]
version = "1.11.0"

[dev-dependencies.regex]
version = "1.12.3"

[dev-dependencies.serial_test]
version = "3.4.0"

[dev-dependencies.temp-env]
version = "0.3"
features = ["async_closure"]

[dev-dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "net",
    "test-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "ansi",
]