[dependencies.anyhow]
version = "1.0.100"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.chrono]
features = ["serde"]
version = "0.4.42"
[dependencies.ctor]
version = "0.6.3"
[dependencies.dashmap]
version = "7.0.0-rc2"
[dependencies.glob]
version = "0.3.3"
[dependencies.log]
version = "0.4.29"
[dependencies.mysql_async]
features = ["chrono", "rust_decimal"]
optional = true
version = "0.36.1"
[dependencies.quick-xml]
features = ["serialize"]
version = "0.38.4"
[dependencies.rusqlite]
optional = true
version = "0.38.0"
[dependencies.rust_decimal]
features = ["serde"]
version = "1.39.0"
[dependencies.serde]
features = ["derive"]
version = "1.0.228"
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tokio]
features = ["full"]
version = "1.48.0"
[dependencies.uorm-macros]
version = "0.4.2"
[dev-dependencies.env_logger]
version = "0.11.6"
[features]
default = ["sqlite"]
mysql = ["dep:mysql_async"]
sqlite = ["dep:rusqlite"]
[lib]
name = "uorm"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "Rust 下的轻量级 ORM 框架,借鉴了 Java MyBatis 的设计理念,强调 SQL 与业务逻辑分离。它结合 Rust 的类型系统与宏机制,支持编写原生 SQL 并自动映射结果,兼容 async/await,兼顾性能与可控性。"
edition = "2024"
license = "Apache-2.0"
name = "uorm"
readme = "README.md"
repository = "https://github.com/uporm/uorm"
version = "0.4.2"
[[test]]
name = "mapper_macros_test"
path = "tests/mapper_macros_test.rs"
[[test]]
name = "mapper_test"
path = "tests/mapper_test.rs"
[[test]]
name = "session_test"
path = "tests/session_test.rs"