# 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_json_utils"
version = "0.4.0"
authors = ["Braden Steffaniak"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MoosicBox json utilities package"
readme = "README.md"
keywords = [
    "database",
    "json",
    "tantivy",
    "util",
    "utility",
]
categories = [
    "database",
    "development-tools",
]
license = "MPL-2.0"
repository = "https://github.com/MoosicBox/MoosicBox"

[package.metadata]
examples = true

[features]
database = [
    "dep:async-trait",
    "dep:switchy_database",
]
decimal = ["switchy_database?/decimal"]
default = [
    "database",
    "rusqlite",
    "serde_json",
    "tantivy",
]
fail-on-warnings = ["switchy_database?/fail-on-warnings"]
rusqlite = ["dep:rusqlite"]
serde_json = ["dep:serde_json"]
tantivy = ["dep:tantivy"]
uuid = ["switchy_database?/uuid"]

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

[dependencies.async-trait]
version = "0.1.89"
optional = true

[dependencies.chrono]
version = "0.4.45"
features = [
    "clock",
    "serde",
]
default-features = false

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

[dependencies.rusqlite]
version = "=0.32.1"
features = ["bundled"]
optional = true

[dependencies.serde_json]
version = "1.0.150"
optional = true

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

[dependencies.tantivy]
version = "0.25.0"
optional = true

[dependencies.thiserror]
version = "2.0.18"
