sqlx-ext 0.1.0

Poll-scoped implicit SQLx transactions
Documentation
# 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"
rust-version = "1.85"
name = "sqlx-ext"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Poll-scoped implicit SQLx transactions"
homepage = "https://github.com/cnwzhu/sqlx-ext"
documentation = "https://docs.rs/sqlx-ext"
readme = "README.md"
keywords = [
    "sqlx",
    "transaction",
    "async",
    "database",
]
categories = [
    "database",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/cnwzhu/sqlx-ext"

[features]
default = [
    "runtime-tokio",
    "postgres",
]
mysql = ["sqlx/mysql"]
postgres = ["sqlx/postgres"]
runtime-async-std = ["sqlx/runtime-async-std"]
runtime-tokio = ["sqlx/runtime-tokio"]
sqlite = ["sqlx/sqlite"]

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

[[test]]
name = "postgres_scoped"
path = "tests/postgres_scoped.rs"
required-features = [
    "postgres",
    "runtime-tokio",
]

[[test]]
name = "repository_transaction"
path = "tests/repository_transaction.rs"
required-features = [
    "postgres",
    "runtime-tokio",
]

[dependencies.futures]
version = "0.3"

[dependencies.sqlx]
version = "0.8"
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["sync"]

[dev-dependencies.async-trait]
version = "0.1"

[dev-dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "postgres",
    "sqlite",
]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]