uorm 0.7.4

Rust 下的轻量级 ORM 框架,借鉴了 Java MyBatis 的设计理念,强调 SQL 与业务逻辑分离。它结合 Rust 的类型系统与宏机制,支持编写原生 SQL 并自动映射结果,兼容 async/await,兼顾性能与可控性。
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "uorm"
version = "0.7.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust 下的轻量级 ORM 框架,借鉴了 Java MyBatis 的设计理念,强调 SQL 与业务逻辑分离。它结合 Rust 的类型系统与宏机制,支持编写原生 SQL 并自动映射结果,兼容 async/await,兼顾性能与可控性。"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/uporm/uorm"

[features]
default = ["sqlite"]
mysql = ["dep:mysql_async"]
sqlite = ["dep:rusqlite"]

[lib]
name = "uorm"
path = "src/lib.rs"

[[test]]
name = "mapper_macros_test"
path = "tests/mapper_macros_test.rs"

[[test]]
name = "mapper_test"
path = "tests/mapper_test.rs"

[[test]]
name = "param_macro_test"
path = "tests/param_macro_test.rs"

[[test]]
name = "param_method_test"
path = "tests/param_method_test.rs"

[[test]]
name = "param_vec_test"
path = "tests/param_vec_test.rs"

[[test]]
name = "scalar_usage_example"
path = "tests/scalar_usage_example.rs"

[[test]]
name = "session_test"
path = "tests/session_test.rs"

[[test]]
name = "test_param_sql"
path = "tests/test_param_sql.rs"

[dependencies.async-trait]
version = "0.1.89"

[dependencies.chrono]
version = "0.4.42"
features = ["serde"]

[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]
version = "0.36.1"
features = [
    "chrono",
    "rust_decimal",
]
optional = true

[dependencies.quick-xml]
version = "0.38.4"
features = ["serialize"]

[dependencies.rusqlite]
version = "0.38.0"
optional = true

[dependencies.rust_decimal]
version = "1.39.0"
features = ["serde"]

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48.0"
features = ["full"]

[dependencies.uorm-macros]
version = "0.7.4"

[dev-dependencies.env_logger]
version = "0.11.6"