# 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" name = "moosicbox_database" version = "0.1.0" authors = ["Braden Steffaniak"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "MoosicBox database package" readme = "README.md" keywords = [ "database", "mysql", "postgres", "sqlite", ] categories = ["database"] license = "MPL-2.0" repository = "https://github.com/MoosicBox/MoosicBox" [lib] name = "moosicbox_database" path = "src/lib.rs" [dependencies.actix-web] version = "4.9.0" optional = true [dependencies.async-trait] version = "0.1.83" [dependencies.chrono] version = "0.4.38" features = [ "clock", "serde", ] default-features = false [dependencies.futures] version = "0.3" optional = true [dependencies.log] version = "0.4" features = ["release_max_level_trace"] [dependencies.moosicbox_task] version = "0.1.0" optional = true default-features = false [dependencies.postgres-protocol] version = "0.6.7" features = [] optional = true [dependencies.qstring] version = "0.7.2" optional = true [dependencies.regex] version = "1.11.0" optional = true [dependencies.rusqlite] version = "0.32.1" features = ["bundled"] optional = true [dependencies.sqlx] version = "0.8.2" features = [ "chrono", "runtime-tokio", "runtime-tokio", ] optional = true default-features = false [dependencies.sqlx-postgres] version = "0.8.2" features = ["chrono"] optional = true default-features = false [dependencies.thiserror] version = "1.0.64" [dependencies.tokio] version = "1.40.0" features = ["sync"] [dependencies.tokio-postgres] version = "0.7.12" features = ["with-chrono-0_4"] optional = true [dependencies.tokio-util] version = "0.7.12" optional = true [features] api = [ "dep:actix-web", "dep:futures", "dep:qstring", ] default = [ "api", "mysql", "postgres-sqlx", "sqlite-rusqlite", "sqlite-sqlx", ] fail-on-warnings = [] mysql = [ "mysql-sqlx", "sqlx", ] mysql-sqlx = [ "dep:futures", "dep:sqlx", "sqlx", "sqlx/mysql", ] postgres = [ "dep:futures", "dep:moosicbox_task", "dep:regex", "dep:tokio-util", "postgres-raw", ] postgres-raw = [ "dep:postgres-protocol", "dep:tokio-postgres", "postgres", ] postgres-sqlx = [ "dep:sqlx", "dep:sqlx-postgres", "postgres", "sqlx", "sqlx-postgres/chrono", "sqlx/postgres", ] sqlite = ["sqlite-sqlx"] sqlite-rusqlite = ["dep:rusqlite"] sqlite-sqlx = [ "dep:futures", "dep:regex", "dep:sqlx", "sqlx", "sqlx/sqlite", ] sqlx = [] tls = ["sqlx/tls-rustls"]