# 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 = "2021"
rust-version = "1.88"
name = "rbox"
version = "0.1.5"
authors = ["Dylan Jones <dylanljones@proton.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library for interacting with the local and export data of Pioneers Rekordbox DJ software"
readme = "README.md"
keywords = [
    "rekordbox",
    "dj",
    "database",
    "setting",
    "anlz",
]
categories = [
    "multimedia::audio",
    "database",
    "parser-implementations",
    "value-formatting",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dylanljones/rbox"
resolver = "3"

[features]
anlz = [
    "dep:binrw",
    "dep:modular-bitfield",
]
bundled = ["libsqlite3-sys/bundled-sqlcipher"]
bundled-vendored-openssl = ["libsqlite3-sys/bundled-sqlcipher-vendored-openssl"]
default = [
    "bundled-vendored-openssl",
    "full",
]
full = [
    "master-db",
    "one-library",
    "anlz",
    "xml",
    "settings",
]
master-db = [
    "anlz",
    "dep:diesel",
    "dep:libsqlite3-sys",
    "dep:quick-xml",
    "dep:rand",
    "dep:uuid",
    "dep:dunce",
]
napi = [
    "dep:napi",
    "dep:napi-derive",
]
one-library = [
    "dep:diesel",
    "dep:diesel_migrations",
    "dep:libsqlite3-sys",
    "dep:dunce",
]
pyo3 = [
    "dep:pyo3",
    "dep:rbox-derives",
]
settings = [
    "dep:binrw",
    "dep:parse-display",
    "dep:crc16",
]
xml = [
    "dep:quick-xml",
    "dep:lazy-regex",
]

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

[[example]]
name = "locate"
path = "examples/locate.rs"

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

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

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

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

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

[[bench]]
name = "main"
path = "benches/main.rs"
harness = false

[dependencies.binrw]
version = "0.15"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.crc16]
version = "0.4"
optional = true

[dependencies.diesel]
version = "2.3"
features = [
    "sqlite",
    "r2d2",
    "128-column-tables",
    "returning_clauses_for_sqlite_3_35",
]
optional = true

[dependencies.diesel_migrations]
version = "2.3"
features = ["sqlite"]
optional = true

[dependencies.dunce]
version = "1.0"
optional = true

[dependencies.lazy-regex]
version = "3.4"
optional = true

[dependencies.libsqlite3-sys]
version = "0.33"
features = ["sqlcipher"]
optional = true

[dependencies.modular-bitfield]
version = "0.13"
optional = true

[dependencies.napi]
version = "3.5"
features = [
    "napi5",
    "serde-json",
    "chrono_date",
]
optional = true
default-features = false

[dependencies.napi-derive]
version = "3.3"
optional = true

[dependencies.parse-display]
version = "0.10"
optional = true

[dependencies.pyo3]
version = "0.27"
features = [
    "serde",
    "chrono",
]
optional = true

[dependencies.quick-xml]
version = "0.38"
features = ["serialize"]
optional = true

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.rbox-derives]
version = "0.1.0"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sysinfo]
version = "0.37"

[dependencies.thiserror]
version = "2.0"

[dependencies.uuid]
version = "1.16"
features = ["v4"]
optional = true

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.criterion]
version = "0.7"

[dev-dependencies.rstest]
version = "0.26.1"

[dev-dependencies.tempfile]
version = "3.23"
