[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