snapif 0.1.2

Snapif scores one tool call and returns Auto, Review, or Escalate.
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 = "2024"
rust-version = "1.95"
name = "snapif"
version = "0.1.2"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Snapif scores one tool call and returns Auto, Review, or Escalate."
readme = "README.md"
keywords = [
    "cli",
    "gate",
    "confidence",
    "tools",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/snapif/snapif"

[features]
cli = [
    "http",
    "dep:clap",
]
default = []
http = [
    "dep:reqwest",
    "dep:tokio",
    "dep:url",
]

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

[[bin]]
name = "snapif"
path = "src/bin/snapif.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.indexmap]
version = "2"
features = ["serde"]

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

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "time",
]
optional = true

[dependencies.toml]
version = "1.1"
features = ["preserve_order"]

[dependencies.url]
version = "2"
optional = true

[dev-dependencies.pollster]
version = "1.0"

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

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