[package]
edition = "2021"
name = "sz-orm-rw"
version = "6.2.0"
authors = ["SZ-ORM Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Read-write splitting: query routing, replica health, load balancing"
homepage = "https://github.com/ljclz/sz-orm"
readme = false
keywords = [
"orm",
"database",
"async",
"sql",
"tokio",
]
categories = [
"database",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/ljclz/sz-orm"
[package.metadata.cargo-machete]
ignored = ["tokio"]
[features]
auto-failover = ["dep:tokio"]
default = []
[lib]
name = "sz_orm_rw"
path = "src/lib.rs"
[[test]]
name = "auto_failover_test"
path = "tests/auto_failover_test.rs"
required-features = ["auto-failover"]
[[test]]
name = "rw_test"
path = "tests/rw_test.rs"
[dependencies.rand]
version = "0.8"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.tokio]
version = "1.40"
features = [
"full",
"sync",
"rt",
"time",
]
optional = true
[lints.clippy]
module_name_repetitions = "allow"
type_complexity = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unsafe_op_in_unsafe_fn = "warn"