# 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"
name = "moosicbox_config"
version = "0.2.0"
authors = ["Braden Steffaniak"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MoosicBox configuration package"
readme = "README.md"
keywords = [
    "config",
    "configuration",
]
categories = ["config"]
license = "MPL-2.0"
repository = "https://github.com/MoosicBox/MoosicBox"

[package.metadata]
examples = false

[features]
api = [
    "db",
    "dep:actix-web",
    "moosicbox_profiles?/api",
    "switchy_database?/api",
]
db = [
    "dep:moosicbox_json_utils",
    "dep:moosicbox_profiles",
    "dep:nanoid",
    "dep:switchy_database",
]
default = [
    "api",
    "db",
    "file",
    "openapi",
]
fail-on-warnings = [
    "moosicbox_assert/fail-on-warnings",
    "moosicbox_json_utils?/fail-on-warnings",
    "moosicbox_profiles?/fail-on-warnings",
    "switchy_database?/fail-on-warnings",
    "switchy_fs/fail-on-warnings",
]
file = []
openapi = ["dep:utoipa"]

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

[dependencies.actix-web]
version = "4.13.0"
optional = true

[dependencies.home]
version = "0.5.12"

[dependencies.json5]
version = "1.3.1"
default-features = false

[dependencies.log]
version = "0.4.29"
features = ["release_max_level_trace"]

[dependencies.moosicbox_assert]
version = "0.2.0"
default-features = false

[dependencies.moosicbox_json_utils]
version = "0.2.0"
features = ["database"]
optional = true
default-features = false

[dependencies.moosicbox_profiles]
version = "0.2.0"
features = ["events"]
optional = true
default-features = false

[dependencies.nanoid]
version = "0.4.0"
optional = true

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

[dependencies.serde_with]
version = "3.20.0"
features = ["macros"]
default-features = false

[dependencies.switchy_database]
version = "0.2.0"
optional = true
default-features = false

[dependencies.switchy_fs]
version = "0.2.0"
features = [
    "std",
    "sync",
]
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.utoipa]
version = "5.5.0"
features = ["actix_extras"]
optional = true
