[package]
name = "ordinaryd"

version.workspace = true
edition.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true

description = "Ordinary Server"
license = "AGPL-3.0-only"
readme = "README.md"
categories = ["command-line-utilities", "web-programming::http-server", "wasm"]

[features]
default = []
jemalloc = ["dep:tikv-jemallocator"]
mimalloc = ["dep:mimalloc"]

[dependencies]
mimalloc = { version = "0.1.48", optional = true }
tikv-jemallocator = { version = "0.6.1", optional = true }

clap.workspace = true
tokio.workspace = true

tracing.workspace = true
tracing-subscriber.workspace = true
tracing-appender.workspace = true

rustls.workspace = true
serde_json.workspace = true
qrcodegen.workspace = true

ordinary-admin = { package = "godfather", path = "../../servers/admin", default-features = false, features = [
    "server",
], version = "0.5.46" }

ordinary-app.workspace = true
ordinary-config.workspace = true
ordinary-storage.workspace = true
ordinary-auth.workspace = true
ordinary-types.workspace = true
bytesize.workspace = true
ordinary-monitor.workspace = true
rand_chacha.workspace = true

page_size.workspace = true

[lints.clippy]
unwrap_used = "deny"

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