[package]
name = "sz-orm-core"
description = "Core ORM engine: Model trait, ActiveRecord, QueryBuilder, Pool, Transaction, migration, and SQL dialect abstraction"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
keywords.workspace = true
categories.workspace = true
[features]
default = ["redis"]
testing = ["tokio/full"]
db-verify = ["sz-orm-macros/db-verify"]
redis = ["dep:redis"]
circuit-breaker = ["sz-orm-health"]
rate-limit = ["sz-orm-limit"]
auto-prewarm = []
plan-cache = ["dep:sqlparser", "dep:xxhash-rust"]
zero-copy = []
simd = ["dep:wide"]
multi-tenant-enhanced = ["dep:sz-orm-audit", "dep:sz-orm-masking"]
dist-cache = ["dep:bloomfilter", "dep:rand", "dep:sz-orm-crypto"]
test-coverage = []
arch-improvement = []
doc-completion = []
perf-smallstring = ["dep:compact_str"]
perf-enum-dispatch = []
perf-zero-copy-l2 = ["zero-copy"]
perf-box-str = []
type-safe-columns = ["sz-orm-macros/type-safe-columns"]
typed-column = []
typed-dsl = []
l1-cache = []
dialect-cockroachdb = []
dialect-yugabytedb = []
migration-guide = []
[dependencies]
async-trait.workspace = true
tracing.workspace = true
thiserror.workspace = true
serde.workspace = true
serde_json.workspace = true
chrono.workspace = true
bytes.workspace = true
tokio = { workspace = true, features = ["sync", "time", "rt", "macros"] }
parking_lot.workspace = true
crossbeam-queue.workspace = true
futures.workspace = true
sz-orm-sql-validator = { version = "3.5.0", path = "../sz-orm-sql-validator" }
sz-orm-macros = { version = "3.5.0", path = "../sz-orm-macros" }
sz-orm-health = { version = "3.5.0", path = "../sz-orm-health", optional = true }
sz-orm-limit = { version = "3.5.0", path = "../sz-orm-limit", optional = true }
redis = { workspace = true, optional = true }
sqlparser = { workspace = true, optional = true }
xxhash-rust = { workspace = true, optional = true }
wide = { workspace = true, optional = true }
sz-orm-audit = { version = "3.5.0", path = "../sz-orm-audit", optional = true }
sz-orm-masking = { version = "3.5.0", path = "../sz-orm-masking", optional = true }
bloomfilter = { workspace = true, optional = true }
rand = { workspace = true, optional = true }
sz-orm-crypto = { version = "3.5.0", path = "../sz-orm-crypto", optional = true }
compact_str = { workspace = true, optional = true }
[dev-dependencies]
tokio = { workspace = true, features = ["full", "test-util"] }
sqlx = { version = "0.9", default-features = false, features = ["runtime-tokio", "tls-rustls", "mysql", "postgres", "sqlite", "chrono", "json"] }
rusqlite = { version = "0.32", features = ["bundled"] }
duckdb = { version = "1", features = ["bundled"] }
oracle = { version = "0.6", default-features = false, features = ["chrono"] }
tiberius = { version = "0.12", default-features = false, features = ["tds73", "chrono"] }
tokio-util = { version = "0.7", features = ["compat"] }
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
proptest = { workspace = true }
[lib]
name = "sz_orm_core"
path = "src/lib.rs"
[[test]]
name = "core_tests"
path = "tests/core.rs"
[[test]]
name = "integration_sqlite"
path = "tests/integration_sqlite.rs"
[[test]]
name = "integration_mysql"
path = "tests/integration_mysql.rs"
[[test]]
name = "integration_pg"
path = "tests/integration_pg.rs"
[[test]]
name = "integration_oracle"
path = "tests/integration_oracle.rs"
[[test]]
name = "integration_mssql"
path = "tests/integration_mssql.rs"
[[test]]
name = "contracts"
path = "tests/contracts.rs"
[[test]]
name = "property"
path = "tests/property.rs"
[[test]]
name = "soak"
path = "tests/soak.rs"
[[test]]
name = "chaos_pool"
path = "tests/chaos_pool.rs"
[[test]]
name = "tenant_concurrency"
path = "tests/tenant_concurrency.rs"
required-features = ["multi-tenant-enhanced"]
[[test]]
name = "plan_cache_differential"
path = "tests/plan_cache_differential.rs"
required-features = ["plan-cache"]
[[test]]
name = "simd_differential"
path = "tests/simd_differential.rs"
required-features = ["simd"]
[[test]]
name = "prewarm_integration"
path = "tests/prewarm_integration.rs"
required-features = ["auto-prewarm"]
[[test]]
name = "smallstring_differential"
path = "tests/smallstring_differential.rs"
[[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_string"
path = "tests/typed_ast_string_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_zst_diff"
path = "tests/typed_ast_zst_diff_test.rs"
required-features = ["typed-dsl"]
[[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 = "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"]
[[bench]]
name = "smallstring_bench"
path = "benches/smallstring_bench.rs"
harness = false
[[bench]]
name = "enum_dispatch_bench"
path = "benches/enum_dispatch_bench.rs"
harness = false
[[bench]]
name = "zero_copy_l2_bench"
path = "benches/zero_copy_l2_bench.rs"
harness = false
[[bench]]
name = "box_str_bench"
path = "benches/box_str_bench.rs"
harness = false
[[bench]]
name = "typed_overhead_bench"
path = "benches/typed_overhead_bench.rs"
harness = false
[[bench]]
name = "l1_cache_bench"
path = "benches/l1_cache_bench.rs"
harness = false
required-features = ["l1-cache"]
[[bench]]
name = "core_bench"
path = "benches/core_bench.rs"
harness = false
[[bench]]
name = "zero_copy_bench"
path = "benches/zero_copy_bench.rs"
harness = false
required-features = ["zero-copy"]
[[bench]]
name = "simd_bench"
path = "benches/simd_bench.rs"
harness = false
required-features = ["simd"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints]
workspace = true