# 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 = "mockforge-core"
version = "0.3.135"
authors = ["SaaSy Solutions LLC <ray.clanan@saasysolutionsllc.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared logic for MockForge - routing, validation, latency, proxy"
homepage = "https://mockforge.dev"
documentation = "https://docs.rs/mockforge-core"
readme = "README.md"
keywords = [
    "mock",
    "api",
    "testing",
    "http",
    "grpc",
]
categories = [
    "development-tools::testing",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/SaaSy-Solutions/mockforge"

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

[features]
advanced = []
ai = []
contracts = []
data = ["mockforge-data"]
database = ["sqlx"]
default = [
    "data",
    "ai",
    "contracts",
    "workspace-mgmt",
    "voice",
    "advanced",
    "scripting",
]
parallel-routes = ["rayon"]
persona-graph = []
schema = [
    "schemars",
    "mockforge-foundation/schema",
]
scripting = [
    "rquickjs",
    "mockforge-foundation/scripting",
]
voice = []
workspace-mgmt = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aes-gcm]
version = "0.10"

[dependencies.anyhow]
version = "1"

[dependencies.argon2]
version = "0.5"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"
features = [
    "ws",
    "multipart",
]

[dependencies.base32]
version = "0.5"

[dependencies.base64]
version = "0.22"

[dependencies.blake3]
version = "1.5"

[dependencies.bytes]
version = "1.5"

[dependencies.chacha20poly1305]
version = "0.10"

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

[dependencies.cron]
version = "0.15"

[dependencies.dirs]
version = "5.0"

[dependencies.futures]
version = "0.3"

[dependencies.globwalk]
version = "0.9.1"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.indexmap]
version = "2.14"

[dependencies.json-patch]
version = "4.2.0"

[dependencies.jsonpath]
version = "0.1"

[dependencies.jsonptr]
version = "0.7.1"

[dependencies.jsonschema]
version = "0.33.0"

[dependencies.jsonwebtoken]
version = "9.0"

[dependencies.matchit]
version = "0.8"

[dependencies.mockforge-data]
version = "0.3.70"
optional = true

[dependencies.mockforge-foundation]
version = "0.3.135"
default-features = false

[dependencies.mockforge-openapi]
version = "0.3.112"

[dependencies.notify]
version = "8.2"

[dependencies.once_cell]
version = "1"

[dependencies.openapiv3]
version = "2.2"

[dependencies.pbkdf2]
version = "0.12"

[dependencies.prost]
version = "0.14"

[dependencies.prost-reflect]
version = "0.16"

[dependencies.prost-types]
version = "0.14"

[dependencies.rand]
version = "0.9"

[dependencies.rayon]
version = "1.12"
optional = true

[dependencies.regex]
version = "1.10"

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

[dependencies.roxmltree]
version = "0.21"

[dependencies.rquickjs]
version = "0.9"
features = [
    "macro",
    "classes",
]
optional = true

[dependencies.rustls]
version = "0.23"
features = ["ring"]

[dependencies.rustls-pemfile]
version = "2"

[dependencies.schemars]
version = "0.8"
features = ["derive"]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "postgres",
    "chrono",
    "uuid",
]
optional = true

[dependencies.tempfile]
version = "3.27"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tokio-tungstenite]
version = "0.28"

[dependencies.toml]
version = "0.8"

[dependencies.tower]
version = "0.5"

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"

[dependencies.urlencoding]
version = "2.1"

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

[dependencies.webpki-roots]
version = "0.26"

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

[dev-dependencies.mockforge-template-expansion]
version = "0.3.70"

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

[dev-dependencies.rcgen]
version = "0.13"

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

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

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

[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = ["Win32_Security_Credentials"]

[lints.rust]
missing_docs = "deny"
