sqltool 0.4.1

功能强大的数据库迁移、同步、运维工具,支持自动分库分表、慢查询检测、数据对比、备份恢复,提供多语言SDK
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 = "2021"
rust-version = "1.94"
name = "sqltool"
version = "0.4.1"
authors = ["SQLTool Team <sqltool@example.com>"]
build = false
exclude = [".trae/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "功能强大的数据库迁移、同步、运维工具,支持自动分库分表、慢查询检测、数据对比、备份恢复,提供多语言SDK"
homepage = "https://github.com/yourusername/sqltool"
documentation = "https://docs.rs/sqltool"
readme = "README.md"
keywords = [
    "database",
    "migration",
    "sql",
    "sharding",
    "backup",
]
categories = [
    "database",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/yourusername/sqltool"

[features]
default = []
oracle = []

[lib]
name = "sqltool"
crate-type = [
    "lib",
    "staticlib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "sqltool"
path = "src/main.rs"

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.86"

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

[dependencies.axum]
version = "0.8.0"

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

[dependencies.clap]
version = "4.6.0"
features = ["derive"]

[dependencies.diesel]
version = "2.2.0"
features = [
    "sqlite",
    "postgres",
    "mysql",
]

[dependencies.env_logger]
version = "0.11.3"

[dependencies.log]
version = "0.4.21"

[dependencies.redis]
version = "0.27.5"

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

[dependencies.serde_json]
version = "1.0.117"

[dependencies.sqlx]
version = "0.8.6"
features = [
    "sqlite",
    "postgres",
    "mysql",
    "runtime-tokio",
]

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

[dependencies.tokio-postgres]
version = "0.7.10"

[dependencies.tower]
version = "0.5.0"

[dependencies.tower-http]
version = "0.6.0"
features = [
    "cors",
    "trace",
]

[dev-dependencies.tokio-test]
version = "0.4.4"

[profile.dev]
opt-level = 0
debug = 2

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"