# 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 = "db-pool" version = "0.4.0" build = false exclude = [ ".vscode", ".github", "book", ] autobins = false autoexamples = false autotests = false autobenches = false description = "A thread-safe database pool for running database-tied integration tests in parallel" documentation = "https://docs.rs/db-pool" readme = "README.md" keywords = [ "database", "pool", "parallel", "test", "web", ] categories = [ "development-tools::testing", "database", "web-programming", ] license = "MIT" repository = "https://github.com/yasamoka/db-pool" [package.metadata.docs.rs] all-features = true [lib] name = "db_pool" path = "src/lib.rs" [[example]] name = "async-graphql" path = "examples/async-graphql/main.rs" test = true required-features = [ "diesel-async-postgres", "diesel-async-bb8", ] [[example]] name = "diesel_async_mysql" path = "examples/diesel_async_mysql.rs" test = true required-features = [ "diesel-async-mysql", "diesel-async-bb8", ] [[example]] name = "diesel_async_postgres" path = "examples/diesel_async_postgres.rs" test = true required-features = [ "diesel-async-postgres", "diesel-async-bb8", ] [[example]] name = "diesel_mysql" path = "examples/diesel_mysql.rs" test = true required-features = ["diesel-mysql"] [[example]] name = "diesel_postgres" path = "examples/diesel_postgres.rs" test = true required-features = ["diesel-postgres"] [[example]] name = "mysql" path = "examples/mysql.rs" test = true required-features = ["mysql"] [[example]] name = "postgres" path = "examples/postgres.rs" test = true required-features = ["postgres"] [[example]] name = "sea_orm_mysql" path = "examples/sea_orm_mysql.rs" test = true required-features = [ "sea-orm-mysql", "sqlx/runtime-tokio", ] [[example]] name = "sea_orm_postgres" path = "examples/sea_orm_postgres.rs" test = true required-features = [ "sea-orm-postgres", "sqlx/runtime-tokio", ] [[example]] name = "sqlx_mysql" path = "examples/sqlx_mysql.rs" test = true required-features = [ "sqlx-mysql", "sqlx/runtime-tokio", ] [[example]] name = "sqlx_postgres" path = "examples/sqlx_postgres.rs" test = true required-features = [ "sqlx-postgres", "sqlx/runtime-tokio", ] [[example]] name = "tokio_postgres" path = "examples/tokio_postgres.rs" test = true required-features = [ "tokio-postgres", "tokio-postgres-bb8", ] [dependencies.async-trait] version = "0.1.77" optional = true [dependencies.bb8] version = "0.8.5" optional = true [dependencies.bb8-postgres] version = "0.8.1" optional = true [dependencies.deadpool] version = "0.9.5" optional = true [dependencies.deadpool-postgres] version = "0.14.0" optional = true [dependencies.diesel] version = "2.2.4" optional = true [dependencies.diesel-async] version = "0.5.0" optional = true [dependencies.futures] version = "0.3.30" optional = true [dependencies.mobc] version = "0.8.4" optional = true [dependencies.mobc-postgres] version = "0.8.0" optional = true [dependencies.parking_lot] version = "0.12.3" [dependencies.r2d2] version = "0.8.10" optional = true [dependencies.r2d2_mysql] version = "25.0.0" optional = true [dependencies.r2d2_postgres] version = "0.18.1" optional = true [dependencies.sea-orm] version = "1.0.1" features = ["runtime-tokio"] optional = true [dependencies.sqlx] version = "0.8.2" features = [ "macros", "runtime-tokio", ] optional = true default-features = false [dependencies.tokio] version = "1.36.0" optional = true [dependencies.tokio-postgres] version = "0.7.10" optional = true [dependencies.uuid] version = "1.10.0" features = ["v4"] [dev-dependencies.async-graphql] version = "7.0.9" [dev-dependencies.async-graphql-poem] version = "7.0.9" [dev-dependencies.bb8] version = "0.8.3" [dev-dependencies.bb8-postgres] version = "0.8.1" [dev-dependencies.diesel] version = "2.2.4" features = [ "mysql", "postgres", "r2d2", ] [dev-dependencies.diesel-async] version = "0.5.0" features = [ "bb8", "mysql", "postgres", ] [dev-dependencies.diesel_async_migrations] version = "0.15.0" [dev-dependencies.dotenvy] version = "0.15.7" [dev-dependencies.futures] version = "0.3.30" [dev-dependencies.mysql] version = "25.0.1" [dev-dependencies.poem] version = "3.0.4" [dev-dependencies.postgres] version = "0.19.8" [dev-dependencies.r2d2] version = "0.8.10" [dev-dependencies.serde] version = "1.0.209" [dev-dependencies.serde_json] version = "1.0.128" [dev-dependencies.sqlx] version = "0.8.2" features = [ "mysql", "postgres", "runtime-tokio", ] default-features = false [dev-dependencies.tokio] version = "1.36.0" features = [ "macros", "rt-multi-thread", ] [dev-dependencies.tokio-postgres] version = "0.7.10" [dev-dependencies.tokio-shared-rt] version = "0.1.0" [dev-dependencies.tokio-test] version = "0.4.4" [features] _async = [ "dep:async-trait", "dep:bb8", "dep:futures", "dep:tokio", "tokio/rt-multi-thread", ] _async-mysql = [ "_async", "_mysql", ] _async-postgres = [ "_async", "_postgres", ] _diesel = [ "_sync", "dep:diesel", "diesel/r2d2", ] _diesel-async = [ "_async", "dep:diesel", "dep:diesel-async", ] _mysql = [] _postgres = [] _sea-orm = ["dep:sea-orm"] _sqlx = ["dep:sqlx"] _sync = ["dep:r2d2"] _sync-mysql = [ "_sync", "_mysql", ] _sync-postgres = [ "_sync", "_postgres", ] deadpool-postgres = ["dep:deadpool-postgres"] diesel-async-bb8 = [ "_diesel-async", "dep:bb8", "diesel-async/bb8", ] diesel-async-deadpool = [ "_diesel-async", "dep:deadpool", "deadpool/managed", "diesel-async/deadpool", ] diesel-async-mobc = [ "_diesel-async", "dep:mobc", "diesel-async/mobc", ] diesel-async-mysql = [ "_async-mysql", "_diesel-async", "diesel-async/mysql", ] diesel-async-postgres = [ "_async-postgres", "_diesel-async", "diesel-async/postgres", ] diesel-mysql = [ "_sync-mysql", "_diesel", "diesel/mysql", ] diesel-postgres = [ "_sync-postgres", "_diesel", "diesel/postgres", ] mobc-postgres = ["dep:mobc-postgres"] mysql = [ "_sync-mysql", "dep:r2d2_mysql", ] postgres = [ "_sync-postgres", "dep:r2d2_postgres", ] sea-orm-mysql = [ "_async-mysql", "_sea-orm", "sea-orm/sqlx-mysql", ] sea-orm-postgres = [ "_async-postgres", "_sea-orm", "sea-orm/sqlx-postgres", ] sqlx-mysql = [ "_async-mysql", "_sqlx", "sqlx/mysql", ] sqlx-postgres = [ "_async-postgres", "_sqlx", "sqlx/postgres", ] tokio-postgres = [ "_async-postgres", "dep:tokio-postgres", ] tokio-postgres-bb8 = [ "tokio-postgres", "dep:bb8", "dep:bb8-postgres", ] tokio-postgres-deadpool = [ "tokio-postgres", "dep:deadpool", "dep:deadpool-postgres", "deadpool/managed", ] tokio-postgres-mobc = [ "tokio-postgres", "dep:mobc", "dep:mobc-postgres", ]