driftwatch 0.1.0

Data & model drift detection for Rust — PSI, KL/JS divergence, KS and chi-square tests, live windowing, and pluggable alerting.
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.75"
name = "driftwatch"
version = "0.1.0"
build = false
exclude = ["/.github"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Data & model drift detection for Rust — PSI, KL/JS divergence, KS and chi-square tests, live windowing, and pluggable alerting."
readme = "README.md"
keywords = [
    "machine-learning",
    "drift",
    "monitoring",
    "psi",
    "mlops",
]
categories = [
    "science",
    "algorithms",
]
license = "MIT"
repository = "https://github.com/mi7plus/driftwatch"

[package.metadata.docs.rs]
all-features = true

[features]
alerting-log = ["dep:tracing"]
alerting-webhook = [
    "dep:reqwest",
    "dep:serde",
    "dep:serde_json",
]
dashboard = [
    "dep:axum",
    "dep:tokio",
    "dep:serde",
]
default = []
label-drift = ["dep:model-selection-rs"]
prometheus-export = ["dep:metrics"]
streaming = ["dep:sketches-ddsketch"]

[lib]
name = "driftwatch"
path = "src/lib.rs"

[[example]]
name = "axum_integration"
path = "examples/axum_integration.rs"
required-features = ["prometheus-export"]

[[example]]
name = "basic_drift_check"
path = "examples/basic_drift_check.rs"
required-features = ["alerting-log"]

[[example]]
name = "data_quality"
path = "examples/data_quality.rs"

[[example]]
name = "html_report"
path = "examples/html_report.rs"

[[example]]
name = "label_drift"
path = "examples/label_drift.rs"
required-features = ["label-drift"]

[[example]]
name = "live_dashboard"
path = "examples/live_dashboard.rs"
required-features = ["dashboard"]

[[example]]
name = "streaming_drift"
path = "examples/streaming_drift.rs"
required-features = ["streaming"]

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.metrics]
version = "0.24"
optional = true

[dependencies.model-selection-rs]
version = "0.1"
optional = true

[dependencies.ndarray]
version = "0.16"

[dependencies.reqwest]
version = "0.13"
features = [
    "blocking",
    "json",
    "rustls",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sketches-ddsketch]
version = "0.4"
optional = true

[dependencies.statrs]
version = "0.19"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["net"]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.axum]
version = "0.8"

[dev-dependencies.metrics-exporter-prometheus]
version = "0.18"

[dev-dependencies.metrics-util]
version = "0.20"
features = ["debugging"]

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "net",
    "io-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"