data-forge 0.1.0

高性能数据锻造工坊 - 为Rust开发者打造的随机数据生成与数据库填充解决方案
Documentation
[package]

name = "data-forge"

version = "0.1.0"

edition = "2021"

description = "高性能数据锻造工坊 - 为Rust开发者打造的随机数据生成与数据库填充解决方案"

license = "MIT OR Apache-2.0"

repository = "https://gitee.com/rust_us/data-forge"

keywords = ["data-generation", "testing", "database", "faker", "random"]

categories = ["development-tools::testing", "database"]



[dependencies]

librarys = { version = "0.1.1", features = ["core", "datetime", "validation", "data", "random", "network"] }



# 核心依赖

serde = { version = "1.0", features = ["derive"] }

serde_json = "1.0"

uuid = { version = "1.0", features = ["v4"] }

rand = "0.8"

chrono = { version = "0.4", features = ["serde"] }

regex = "1.10"



# 并行处理

rayon = "1.10"



# 模板引擎

handlebars = "4.5"



# 缓存和优化

once_cell = "1.19"

lazy_static = "1.4"



# 正则表达式随机生成

rand_regex = "0.15"



# 错误处理

thiserror = "1.0"

anyhow = "1.0"



# 数据库支持

sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "mysql", "postgres", "sqlite", "macros"], optional = true }

tokio = { version = "1.0", features = ["full"], optional = true }



# 日志

log = "0.4"

tracing = { version = "0.1", optional = true }



# 配置管理

toml = "0.8"

serde_yaml = "0.9"



# 系统信息

num_cpus = "1.16"



[dev-dependencies]

criterion = { version = "0.5", features = ["html_reports"] }

tempfile = "3.8"

toml = "0.8"



[features]

default = ["database"]  # 设置默认启用数据库特性

database = ["sqlx", "tokio"]

tracing = ["dep:tracing"]



[lib]

name = "dataforge"

path = "src/lib.rs"

crate-type = ["cdylib", "rlib"]



[profile.dev]

opt-level = 1



[profile.release]

opt-level = 3

lto = true

codegen-units = 1