# 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_connection" version = "0.1.0" authors = ["Braden Steffaniak"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "MoosicBox database connection 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_connection" path = "src/lib.rs" [dependencies.aws-config] version = "1.5.7" optional = true [dependencies.aws-sdk-ssm] version = "1.49.0" optional = true [dependencies.log] version = "0.4" features = ["release_max_level_trace"] [dependencies.moosicbox_database] version = "0.1.0" default-features = false [dependencies.native-tls] version = "0.2.12" optional = true [dependencies.openssl] version = "0.10.66" features = ["v110"] optional = true [dependencies.postgres-native-tls] version = "0.5.0" optional = true [dependencies.postgres-openssl] version = "0.5.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.thiserror] version = "1.0.64" [dependencies.tokio] version = "1.40.0" features = ["sync"] optional = true [dependencies.tokio-postgres] version = "0.7.12" features = ["with-chrono-0_4"] optional = true [features] creds = [ "dep:aws-config", "dep:aws-sdk-ssm", ] default = [ "mysql-sqlx", "postgres-sqlx", "sqlite-sqlx", ] fail-on-warnings = [] mysql = [ "creds", "dep:tokio", ] mysql-sqlx = [ "moosicbox_database/mysql-sqlx", "mysql", "sqlx", "sqlx/mysql", ] postgres = [ "creds", "dep:tokio", "moosicbox_database/postgres", ] postgres-native-tls = [ "dep:native-tls", "dep:postgres-native-tls", ] postgres-openssl = [ "dep:openssl", "dep:postgres-openssl", ] postgres-raw = [ "dep:tokio-postgres", "moosicbox_database/postgres-raw", "postgres", ] postgres-sqlx = [ "moosicbox_database/postgres-sqlx", "postgres", "sqlx", "sqlx/postgres", "sqlx/tls-rustls", ] sqlite = ["dep:tokio"] sqlite-rusqlite = [ "dep:rusqlite", "moosicbox_database/sqlite-rusqlite", "sqlite", ] sqlite-sqlx = [ "moosicbox_database/sqlite-sqlx", "sqlite", "sqlx", "sqlx/sqlite", ] sqlx = [ "dep:sqlx", "moosicbox_database/sqlx", ] tls = [ "moosicbox_database/tls", "sqlx/tls-rustls", ]