[package]
edition = "2021"
name = "sz-orm-core"
version = "1.1.0"
authors = ["SZ-ORM Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core ORM engine: Model trait, ActiveRecord, QueryBuilder, Pool, Transaction, migration, and SQL dialect abstraction"
homepage = "https://github.com/ljclz/sz-orm"
readme = "README.md"
keywords = [
"orm",
"database",
"async",
"sql",
"tokio",
]
categories = [
"database",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/ljclz/sz-orm"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
circuit-breaker = ["sz-orm-health"]
db-verify = ["sz-orm-macros/db-verify"]
default = []
rate-limit = ["sz-orm-limit"]
redis = ["dep:redis"]
testing = ["tokio/full"]
[lib]
name = "sz_orm_core"
path = "src/lib.rs"
[[test]]
name = "chaos"
path = "tests/chaos.rs"
[[test]]
name = "chaos_pool"
path = "tests/chaos_pool.rs"
[[test]]
name = "contracts"
path = "tests/contracts.rs"
[[test]]
name = "core_tests"
path = "tests/core.rs"
[[test]]
name = "formal"
path = "tests/formal.rs"
[[test]]
name = "fuzz"
path = "tests/fuzz.rs"
[[test]]
name = "integration_mysql"
path = "tests/integration_mysql.rs"
[[test]]
name = "integration_oracle"
path = "tests/integration_oracle.rs"
[[test]]
name = "integration_pg"
path = "tests/integration_pg.rs"
[[test]]
name = "integration_sqlite"
path = "tests/integration_sqlite.rs"
[[test]]
name = "jepsen"
path = "tests/jepsen.rs"
[[test]]
name = "param_binding"
path = "tests/param_binding.rs"
[[test]]
name = "property"
path = "tests/property.rs"
[[test]]
name = "soak"
path = "tests/soak.rs"
[[test]]
name = "stress"
path = "tests/stress.rs"
[[test]]
name = "typed_query"
path = "tests/typed_query.rs"
[[bench]]
name = "core_bench"
path = "benches/core_bench.rs"
harness = false
[dependencies.async-trait]
version = "0.1"
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.crossbeam-queue]
version = "0.3"
[dependencies.futures]
version = "0.3"
[dependencies.redis]
version = "0.27"
features = [
"tokio-comp",
"connection-manager",
]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sz-orm-health]
version = "1.0.0"
optional = true
[dependencies.sz-orm-limit]
version = "1.0.0"
optional = true
[dependencies.sz-orm-macros]
version = "1.0.0"
[dependencies.sz-orm-sql-validator]
version = "1.0.0"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.40"
features = [
"full",
"sync",
"time",
"rt",
"macros",
]
[dependencies.tracing]
version = "0.1"
features = ["attributes"]
[dev-dependencies.criterion]
version = "0.5"
features = [
"html_reports",
"async_tokio",
]
[dev-dependencies.oracle]
version = "0.6"
features = ["chrono"]
default-features = false
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
[dev-dependencies.sqlx]
version = "0.9"
features = [
"runtime-tokio",
"tls-rustls",
"mysql",
"postgres",
"sqlite",
"chrono",
"json",
]
default-features = false
[dev-dependencies.tokio]
version = "1.40"
features = [
"full",
"full",
"test-util",
]
[lints.clippy]
module_name_repetitions = "allow"
type_complexity = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unsafe_op_in_unsafe_fn = "warn"