# 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 = "2021"
name = "molock"
version = "0.2.0"
authors = ["Molock Team"]
build = false
exclude = [
    "/.agents/*",
    "/.beads/*",
    "/.claude/*",
    "/.cursorrules",
    "/.pre-commit-config.yaml",
    "/.trufflehog-exclude.txt",
    "/benchmarks/*",
    "/deployment/*",
    "/docs/book/book/*",
    "/tests/*",
    "/tarpaulin-report.html",
    "/Makefile",
    "AGENTS.md",
    "BENCHMARK-DOCKER.md",
    "BENCHMARKING.md",
    "ROADMAP.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance mock server for CI/CD pipelines and testing"
readme = "README.md"
keywords = [
    "mock-server",
    "testing",
    "http",
    "actix-web",
    "opentelemetry",
]
categories = [
    "web-programming::http-server",
    "development-tools::testing",
]
license = "Apache-2.0"
repository = "https://github.com/fike/molock"

[features]
default = ["otel"]
hot-reload = ["notify"]
otel = [
    "opentelemetry",
    "opentelemetry_sdk",
    "opentelemetry-otlp",
    "opentelemetry-http",
    "tracing-opentelemetry",
    "opentelemetry-appender-tracing",
]

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

[[bin]]
name = "molock"
path = "src/main.rs"

[dependencies.actix-rt]
version = "2.0"

[dependencies.actix-service]
version = "2.0"

[dependencies.actix-web]
version = "4.0"

[dependencies.anyhow]
version = "1.0"

[dependencies.arc-swap]
version = "1.0"

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

[dependencies.clap]
version = "4.0"
features = ["derive"]

[dependencies.dashmap]
version = "5.0"

[dependencies.eval]
version = "0.4"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1.0"

[dependencies.jsonschema]
version = "0.26"

[dependencies.lazy_static]
version = "1.4"

[dependencies.mime]
version = "0.3"

[dependencies.notify]
version = "6.0"
optional = true

[dependencies.once_cell]
version = "1.0"

[dependencies.opentelemetry]
version = "0.31"
features = [
    "metrics",
    "trace",
    "logs",
]
optional = true

[dependencies.opentelemetry-appender-tracing]
version = "0.31"
optional = true

[dependencies.opentelemetry-http]
version = "0.31"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "grpc-tonic",
    "http-proto",
    "logs",
    "reqwest",
]
optional = true

[dependencies.opentelemetry-semantic-conventions]
version = "0.31"
optional = true

[dependencies.opentelemetry_sdk]
version = "0.31"
features = [
    "rt-tokio",
    "trace",
    "logs",
]
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1.0"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.0"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.32"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
    "time",
]

[dependencies.url]
version = "2.0"

[dependencies.utoipa]
version = "5"
features = ["actix_extras"]

[dependencies.utoipa-actix-web]
version = "0.1"

[dependencies.utoipa-swagger-ui]
version = "9"
features = ["actix-web"]

[dependencies.uuid]
version = "1.0"
features = ["v4"]

[dev-dependencies.assert-json-diff]
version = "2.0"

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

[dev-dependencies.tempfile]
version = "3.0"

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.wiremock]
version = "0.5"

[profile.dev]
opt-level = 0
debug = 2

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
