[package]
edition = "2021"
name = "sz-orm-core"
version = "3.5.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]
arch-improvement = []
auto-prewarm = []
circuit-breaker = ["sz-orm-health"]
db-verify = ["sz-orm-macros/db-verify"]
default = ["redis"]
dialect-cockroachdb = []
dialect-yugabytedb = []
dist-cache = [
"dep:bloomfilter",
"dep:rand",
"dep:sz-orm-crypto",
]
doc-completion = []
l1-cache = []
migration-guide = []
multi-tenant-enhanced = [
"dep:sz-orm-audit",
"dep:sz-orm-masking",
]
perf-box-str = []
perf-enum-dispatch = []
perf-smallstring = ["dep:compact_str"]
perf-zero-copy-l2 = ["zero-copy"]
plan-cache = [
"dep:sqlparser",
"dep:xxhash-rust",
]
rate-limit = ["sz-orm-limit"]
redis = ["dep:redis"]
simd = ["dep:wide"]
test-coverage = []
testing = ["tokio/full"]
type-safe-columns = ["sz-orm-macros/type-safe-columns"]
typed-column = []
typed-dsl = []
zero-copy = []
[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 = "compile_time_verify"
path = "tests/compile_time_verify.rs"
[[test]]
name = "contracts"
path = "tests/contracts.rs"
[[test]]
name = "core_tests"
path = "tests/core.rs"
[[test]]
name = "derive_relation_trait_test"
path = "tests/derive_relation_trait_test.rs"
[[test]]
name = "dialect_cockroachdb"
path = "tests/dialect_cockroachdb_test.rs"
required-features = ["dialect-cockroachdb"]
[[test]]
name = "dialect_yugabytedb"
path = "tests/dialect_yugabytedb_test.rs"
required-features = ["dialect-yugabytedb"]
[[test]]
name = "e2e_batch_upsert"
path = "tests/e2e_batch_upsert.rs"
[[test]]
name = "e2e_eager_cycle"
path = "tests/e2e_eager_cycle.rs"
[[test]]
name = "e2e_keyset"
path = "tests/e2e_keyset.rs"
[[test]]
name = "e2e_migration"
path = "tests/e2e_migration.rs"
[[test]]
name = "e2e_transaction"
path = "tests/e2e_transaction.rs"
[[test]]
name = "eager_loader_test"
path = "tests/eager_loader_test.rs"
[[test]]
name = "formal"
path = "tests/formal.rs"
[[test]]
name = "from_query_result"
path = "tests/from_query_result.rs"
[[test]]
name = "from_row"
path = "tests/from_row.rs"
[[test]]
name = "fuzz"
path = "tests/fuzz.rs"
[[test]]
name = "integration_duckdb"
path = "tests/integration_duckdb.rs"
[[test]]
name = "integration_mssql"
path = "tests/integration_mssql.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_redis"
path = "tests/integration_redis.rs"
[[test]]
name = "integration_sqlite"
path = "tests/integration_sqlite.rs"
[[test]]
name = "jepsen"
path = "tests/jepsen.rs"
[[test]]
name = "join_relation_test"
path = "tests/join_relation_test.rs"
[[test]]
name = "l1_cache"
path = "tests/l1_cache_test.rs"
required-features = ["l1-cache"]
[[test]]
name = "l1_l2_db"
path = "tests/l1_l2_db_test.rs"
required-features = ["l1-cache"]
[[test]]
name = "mutation"
path = "tests/mutation.rs"
[[test]]
name = "nested_active_model_test"
path = "tests/nested_active_model_test.rs"
[[test]]
name = "param_binding"
path = "tests/param_binding.rs"
[[test]]
name = "partial_model_test"
path = "tests/partial_model_test.rs"
[[test]]
name = "plan_cache_differential"
path = "tests/plan_cache_differential.rs"
required-features = ["plan-cache"]
[[test]]
name = "prewarm_integration"
path = "tests/prewarm_integration.rs"
required-features = ["auto-prewarm"]
[[test]]
name = "property"
path = "tests/property.rs"
[[test]]
name = "simd_differential"
path = "tests/simd_differential.rs"
required-features = ["simd"]
[[test]]
name = "smallstring_differential"
path = "tests/smallstring_differential.rs"
[[test]]
name = "smart_eager_integration_mssql"
path = "tests/smart_eager_integration_mssql.rs"
[[test]]
name = "smart_eager_integration_mysql"
path = "tests/smart_eager_integration_mysql.rs"
[[test]]
name = "smart_eager_integration_oracle"
path = "tests/smart_eager_integration_oracle.rs"
[[test]]
name = "smart_eager_integration_pg"
path = "tests/smart_eager_integration_pg.rs"
[[test]]
name = "smart_eager_integration_sqlite"
path = "tests/smart_eager_integration_sqlite.rs"
[[test]]
name = "smart_eager_test_infra"
path = "tests/smart_eager_test_infra.rs"
[[test]]
name = "soak"
path = "tests/soak.rs"
[[test]]
name = "sql_type"
path = "tests/sql_type.rs"
[[test]]
name = "stress"
path = "tests/stress.rs"
[[test]]
name = "tenant_concurrency"
path = "tests/tenant_concurrency.rs"
required-features = ["multi-tenant-enhanced"]
[[test]]
name = "type_safe_columns"
path = "tests/type_safe_columns.rs"
required-features = ["type-safe-columns"]
[[test]]
name = "typed_ast_aggregate"
path = "tests/typed_ast_aggregate_test.rs"
required-features = ["typed-dsl"]
[[test]]
name = "typed_ast_arithmetic"
path = "tests/typed_ast_arithmetic_test.rs"
required-features = ["typed-dsl"]
[[test]]
name = "typed_ast_date"
path = "tests/typed_ast_date_test.rs"
required-features = ["typed-dsl"]
[[test]]
name = "typed_ast_string"
path = "tests/typed_ast_string_test.rs"
required-features = ["typed-dsl"]
[[test]]
name = "typed_ast_zst_diff"
path = "tests/typed_ast_zst_diff_test.rs"
required-features = ["typed-dsl"]
[[test]]
name = "typed_query"
path = "tests/typed_query.rs"
[[bench]]
name = "box_str_bench"
path = "benches/box_str_bench.rs"
harness = false
[[bench]]
name = "core_bench"
path = "benches/core_bench.rs"
harness = false
[[bench]]
name = "enum_dispatch_bench"
path = "benches/enum_dispatch_bench.rs"
harness = false
[[bench]]
name = "l1_cache_bench"
path = "benches/l1_cache_bench.rs"
harness = false
required-features = ["l1-cache"]
[[bench]]
name = "simd_bench"
path = "benches/simd_bench.rs"
harness = false
required-features = ["simd"]
[[bench]]
name = "smallstring_bench"
path = "benches/smallstring_bench.rs"
harness = false
[[bench]]
name = "typed_overhead_bench"
path = "benches/typed_overhead_bench.rs"
harness = false
[[bench]]
name = "zero_copy_bench"
path = "benches/zero_copy_bench.rs"
harness = false
required-features = ["zero-copy"]
[[bench]]
name = "zero_copy_l2_bench"
path = "benches/zero_copy_l2_bench.rs"
harness = false
[dependencies.async-trait]
version = "0.1"
[dependencies.bloomfilter]
version = "1.0"
optional = true
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.compact_str]
version = "0.8"
optional = true
[dependencies.crossbeam-queue]
version = "0.3"
[dependencies.futures]
version = "0.3"
[dependencies.parking_lot]
version = "0.12"
[dependencies.rand]
version = "0.8"
optional = true
[dependencies.redis]
version = "0.27"
features = [
"tokio-comp",
"connection-manager",
]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sqlparser]
version = "0.47"
optional = true
[dependencies.sz-orm-audit]
version = "3.5.0"
optional = true
[dependencies.sz-orm-crypto]
version = "3.5.0"
optional = true
[dependencies.sz-orm-health]
version = "3.5.0"
optional = true
[dependencies.sz-orm-limit]
version = "3.5.0"
optional = true
[dependencies.sz-orm-macros]
version = "3.5.0"
[dependencies.sz-orm-masking]
version = "3.5.0"
optional = true
[dependencies.sz-orm-sql-validator]
version = "3.5.0"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.40"
features = [
"full",
"sync",
"time",
"rt",
"macros",
]
[dependencies.tracing]
version = "0.1"
features = ["attributes"]
[dependencies.wide]
version = "0.7"
optional = true
[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh64"]
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = [
"html_reports",
"async_tokio",
]
[dev-dependencies.duckdb]
version = "1"
features = ["bundled"]
[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.tiberius]
version = "0.12"
features = [
"tds73",
"chrono",
]
default-features = false
[dev-dependencies.tokio]
version = "1.40"
features = [
"full",
"full",
"test-util",
]
[dev-dependencies.tokio-util]
version = "0.7"
features = ["compat"]
[lints.clippy]
module_name_repetitions = "allow"
type_complexity = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unsafe_op_in_unsafe_fn = "warn"