secra-database 0.1.0

基于 SeaORM 的 Rust 数据库连接和管理库
Documentation
[package]
name = "secra-database"
version = "0.1.0"
edition = "2021"
description = "基于 SeaORM 的 Rust 数据库连接和管理库"
authors = ["Secra Team"]
license = "MIT OR Apache-2.0"
keywords = ["database", "orm", "sea-orm", "postgresql", "mysql"]
categories = ["database"]

[dependencies]
# 数据库 ORM
sea-orm = { version = "2.0.0-rc", features = [
    "sqlx-postgres",
    "debug-print",
    "macros", "with-chrono",
    "with-time", "with-json",
    "with-rust_decimal",
    "with-bigdecimal",
    "with-uuid",
    "postgres-array",
    "sea-orm-internal"]}

# 序列化/反序列化
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

# 错误处理
thiserror = "2.0"

# 日志记录
tracing = "0.1"
log = "0.4"

# URL 编码
urlencoding = "2.1"

[dev-dependencies]
# 异步运行时(用于示例)
tokio = { version = "1.0", features = ["full"] }