# 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.96"
name = "nidus-rs"
version = "1.0.6"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Public facade crate for the Nidus modular Rust backend framework."
homepage = "https://rustnidus.com/"
documentation = "https://docs.rs/nidus-rs"
readme = "README.md"
keywords = [
    "framework",
    "axum",
    "di",
    "http",
    "backend",
]
categories = [
    "web-programming::http-server",
    "asynchronous",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vicotrbb/nidus"
resolver = "2"

[features]
auth = ["dep:nidus-auth"]
config = ["dep:nidus-config"]
dashboard = [
    "dep:nidus-dashboard",
    "http",
]
default = [
    "http",
    "config",
    "tracing",
]
events = ["dep:nidus-events"]
http = ["dep:nidus-http"]
jobs = ["dep:nidus-jobs"]
observability = [
    "dep:nidus-observability",
    "http",
]
openapi = ["dep:nidus-openapi"]
otel = [
    "http",
    "nidus-http/otel",
]
testing = ["dep:nidus-testing"]
tracing = []
validation = ["dep:nidus-validation"]

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

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

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

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

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

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

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

[dependencies.nidus-auth]
version = "1.0.6"
optional = true

[dependencies.nidus-config]
version = "1.0.6"
optional = true

[dependencies.nidus-core]
version = "1.0.6"

[dependencies.nidus-dashboard]
version = "1.0.6"
optional = true

[dependencies.nidus-events]
version = "1.0.6"
optional = true

[dependencies.nidus-http]
version = "1.0.6"
optional = true

[dependencies.nidus-jobs]
version = "1.0.6"
optional = true

[dependencies.nidus-macros]
version = "1.0.6"

[dependencies.nidus-observability]
version = "1.0.6"
optional = true

[dependencies.nidus-openapi]
version = "1.0.6"
optional = true

[dependencies.nidus-testing]
version = "1.0.6"
optional = true

[dependencies.nidus-validation]
version = "1.0.6"
optional = true

[dependencies.serde_json]
version = "1"

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

[dependencies.tower-http]
version = "0.6"
features = [
    "compression-gzip",
    "cors",
    "limit",
    "trace",
]

[dependencies.utoipa]
version = "5"

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

[dev-dependencies.axum]
version = "0.8"

[dev-dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies.tower]
version = "0.5"
features = [
    "limit",
    "timeout",
    "util",
]

[dev-dependencies.trybuild]
version = "1"
