[package]
name = "apimock"
version = "4.6.9"
edition = "2024"

description = "HTTP(S) mock server. Drop JSON files into a folder and your API immediately exists."
authors = ["nabbisen <nabbisen@scqr.net>"]
license = "Apache-2.0"

categories = ["web-programming", "development-tools", "command-line-utilities"]
keywords = ["http", "api", "mock", "testing"]
repository = "https://github.com/apimokka/apimock-rs"
readme = "README.md"
rust-version = "1.90.0"

[profile.release]     # shrink executable size
opt-level = "z"
lto = true
# panic = "abort"
strip = true
codegen-units = 1

[profile.dev]         # to reasonably improve productivity
opt-level = 1         # slightly optimize
lto = false           # disable link-time optimizations
# strip = "debuginfo" # reduce size
incremental = true

[features]
default = []
spawn = [] # offers another entry point for subprocess

[dependencies]
tokio = { version = "^1.44", features = ["full"] }
hyper = { version = "1", features = ["server", "http1", "http2"] }
hyper-util = { version = "0", features = ["server", "http1", "http2", "tokio"] }
http-body-util = "0"

rustls = { version = "0.23.38", default-features = false, features = ["log", "ring"] }
tokio-rustls = { version = "0.26.4", default-features = false, features = ["logging", "ring", "tls12"] }

log = "0"
console = "0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "1"
json5 = "1"
csv = "1"
rhai = { version = "1", features = ["sync", "serde"] }

[dev-dependencies]
rand = "^0"
reqwest = { version = "0", default-features = false, features = ["rustls-tls"] }
rcgen = "^0"
local-ip-address = "^0"
