# 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 = "2024"
rust-version = "1.88.0"
name = "rsigma"
version = "0.11.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI for parsing, validating, linting and evaluating Sigma detection rules"
homepage = "https://github.com/timescale/rsigma"
readme = "README.md"
license = "MIT"
repository = "https://github.com/timescale/rsigma"

[features]
cef = ["rsigma-runtime/cef"]
daachorse-index = [
    "rsigma-eval/daachorse-index",
    "rsigma-runtime?/daachorse-index",
]
daemon = [
    "rsigma-runtime",
    "tokio",
    "axum",
    "async-trait",
    "prometheus",
    "notify",
    "rusqlite",
]
daemon-nats = [
    "daemon",
    "rsigma-runtime/nats",
    "async-nats",
    "tokio-stream",
    "time",
]
daemon-otlp = [
    "daemon",
    "rsigma-runtime/otlp",
    "prost",
    "tonic",
    "flate2",
    "tokio-stream",
]
default = ["daemon"]
evtx = ["rsigma-runtime/evtx"]
logfmt = ["rsigma-runtime/logfmt"]

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.async-nats]
version = "0.47"
optional = true

[dependencies.async-trait]
version = "0.1"
optional = true

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

[dependencies.chrono]
version = "0.4"
features = [
    "std",
    "now",
]
default-features = false

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.dirs]
version = "6"

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

[dependencies.jaq-interpret]
version = "1.5.0"

[dependencies.jaq-parse]
version = "1.0.3"

[dependencies.jsonschema]
version = "0.46"

[dependencies.notify]
version = "8.2"
optional = true

[dependencies.prometheus]
version = "0.14"
optional = true
default-features = false

[dependencies.prost]
version = "0.14"
optional = true

[dependencies.rsigma-convert]
version = "0.11.0"

[dependencies.rsigma-eval]
version = "0.11.0"
features = ["parallel"]

[dependencies.rsigma-parser]
version = "0.11.0"

[dependencies.rsigma-runtime]
version = "0.11.0"
optional = true

[dependencies.rusqlite]
version = "0.39"
features = ["bundled"]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_json_path]
version = "0.7.2"

[dependencies.serde_yaml]
version = "0.10"
package = "yaml_serde"

[dependencies.time]
version = "0.3"
optional = true

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

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.tonic]
version = "0.14"
features = ["gzip"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "json",
    "env-filter",
]

[dependencies.ureq]
version = "3"

[dependencies.yamlpatch]
version = "1.24"

[dependencies.yamlpatch_yaml]
version = "0.9"
package = "serde_yaml"

[dependencies.yamlpath]
version = "1.24"

[dev-dependencies.assert_cmd]
version = "2.1.2"

[dev-dependencies.async-nats]
version = "0.47"

[dev-dependencies.bytes]
version = "1"

[dev-dependencies.flate2]
version = "1"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.insta]
version = "1.46"

[dev-dependencies.opentelemetry-proto]
version = "0.31"
features = [
    "gen-tonic",
    "logs",
    "with-serde",
]
default-features = false

[dev-dependencies.predicates]
version = "3.1.4"

[dev-dependencies.prost]
version = "0.14"

[dev-dependencies.rusqlite]
version = "0.39"
features = ["bundled"]

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tempfile]
version = "3.25.0"

[dev-dependencies.testcontainers]
version = "0.27"

[dev-dependencies.testcontainers-modules]
version = "0.15"
features = ["nats"]

[dev-dependencies.tokio]
version = "1"
features = ["full"]
