guardflow 0.2.0

Validators and a retry-until-valid guard for LLM output, in Rust
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"
name = "guardflow"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Validators and a retry-until-valid guard for LLM output, in Rust"
readme = "README.md"
keywords = [
    "llm",
    "validation",
    "guardrails",
    "agent",
    "ai",
]
categories = [
    "asynchronous",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/thaicn1712/guardflow"

[features]
graphflow = ["dep:graph-flow"]
json-schema = ["dep:jsonschema"]
spec = [
    "dep:serde",
    "dep:serde_norway",
]

[lib]
name = "guardflow"
path = "guardflow/guard.rs"

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

[[test]]
name = "graphflow_integration"
path = "tests/graphflow_integration.rs"
required-features = ["graphflow"]

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

[[test]]
name = "json_schema"
path = "tests/json_schema.rs"
required-features = ["json-schema"]

[[test]]
name = "spec"
path = "tests/spec.rs"
required-features = ["spec"]

[[bench]]
name = "overhead"
path = "benches/overhead.rs"
harness = false

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

[dependencies.graph-flow]
version = "0.6"
optional = true

[dependencies.jsonschema]
version = "0.49"
optional = true

[dependencies.regex]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_norway]
version = "0.9"
optional = true

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

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