[package]
edition = "2021"
name = "schema-risk"
version = "0.1.3"
authors = ["Keystones-lab"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stop dangerous database migrations before they reach production"
homepage = "https://github.com/Keystones-Lab/Schema-risk"
documentation = "https://docs.rs/schema-risk"
readme = "README.md"
keywords = [
"database",
"migration",
"sql",
"postgresql",
"safety",
]
categories = [
"command-line-utilities",
"database",
]
license = "MIT"
repository = "https://github.com/Keystones-Lab/Schema-risk"
[features]
db = ["tokio-postgres"]
default = []
full = [
"db",
"github",
]
github = ["reqwest"]
sqlx-db = ["sqlx"]
[lib]
name = "schema_risk"
path = "src/lib.rs"
[[bin]]
name = "schema-risk"
path = "src/main.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.chrono]
version = "0.4"
features = [
"std",
"clock",
"serde",
]
default-features = false
[dependencies.clap]
version = "4.5"
features = [
"derive",
"color",
"env",
]
[dependencies.colored]
version = "2"
[dependencies.comfy-table]
version = "7"
[dependencies.dotenvy]
version = "0.15"
[dependencies.glob]
version = "0.3"
[dependencies.petgraph]
version = "0.6"
[dependencies.rayon]
version = "1.10"
[dependencies.regex]
version = "1.11"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_yaml]
version = "0.9"
[dependencies.sqlparser]
version = "0.53"
[dependencies.sqlx]
version = "0.7"
features = [
"postgres",
"runtime-tokio-native-tls",
"macros",
]
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.44"
features = [
"rt-multi-thread",
"macros",
]
[dependencies.tokio-postgres]
version = "0.7"
features = ["with-serde_json-1"]
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
"ansi",
]
default-features = false
[profile.dev]
opt-level = 0
debug = 2
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true