earl 0.4.0

AI-safe CLI for AI agents
# 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 = "earl"
version = "0.4.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI-safe CLI for AI agents"
homepage = "https://github.com/brwse/earl"
documentation = "https://brwse.github.io/earl"
readme = "README.md"
keywords = [
    "cli",
    "security",
    "ai",
    "http",
    "templates",
]
categories = [
    "command-line-utilities",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/brwse/earl"

[features]
bash = ["dep:earl-protocol-bash"]
default = [
    "http",
    "graphql",
    "grpc",
    "bash",
    "sql",
    "local-search",
]
graphql = ["http"]
grpc = ["dep:earl-protocol-grpc"]
http = ["dep:earl-protocol-http"]
local-search = ["dep:fastembed"]
sql = ["dep:earl-protocol-sql"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.axum]
version = "0.8"

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.clap_complete]
version = "4.5"

[dependencies.comfy-table]
version = "7.2"

[dependencies.directories]
version = "6.0"

[dependencies.earl-core]
version = "0.4.0"

[dependencies.earl-protocol-bash]
version = "0.4.0"
optional = true

[dependencies.earl-protocol-grpc]
version = "0.4.0"
optional = true

[dependencies.earl-protocol-http]
version = "0.4.0"
optional = true

[dependencies.earl-protocol-sql]
version = "0.4.0"
optional = true

[dependencies.fastembed]
version = "5.11"
optional = true

[dependencies.hcl]
version = "0.19.5"
package = "hcl-rs"

[dependencies.hickory-resolver]
version = "0.25"

[dependencies.include_dir]
version = "0.7"

[dependencies.jsonwebtoken]
version = "9"

[dependencies.keyring]
version = "3.6.3"
features = [
    "apple-native",
    "windows-native",
    "linux-native",
    "async-secret-service",
    "tokio",
    "crypto-rust",
    "vendored",
]
default-features = false

[dependencies.mime_guess]
version = "2.0"

[dependencies.minijinja]
version = "2.15"
features = [
    "json",
    "loader",
]

[dependencies.oauth2]
version = "5.0"
features = [
    "reqwest",
    "rustls-tls",
    "pkce-plain",
]
default-features = false

[dependencies.regex]
version = "1.12"

[dependencies.reqwest]
version = "0.13.2"
features = [
    "json",
    "multipart",
    "gzip",
    "brotli",
    "deflate",
    "zstd",
    "rustls",
    "query",
    "form",
]

[dependencies.rpassword]
version = "7.4.0"

[dependencies.scraper]
version = "0.25.0"

[dependencies.secrecy]
version = "0.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sxd-document]
version = "0.3"

[dependencies.sxd-xpath]
version = "0.4"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.toml]
version = "1.0.3"

[dependencies.tracing]
version = "0.1"

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

[dependencies.url]
version = "2.5"

[dependencies.webbrowser]
version = "1.0"

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

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

[dev-dependencies.insta]
version = "1.43"
features = ["yaml"]

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

[dev-dependencies.tokio-stream]
version = "0.1"
features = ["net"]

[dev-dependencies.tonic]
version = "0.14"
features = ["transport"]

[dev-dependencies.tonic-health]
version = "0.14"

[dev-dependencies.tonic-reflection]
version = "0.14"

[dev-dependencies.tower]
version = "0.5"
features = ["util"]

[target.'cfg(target_os = "linux")'.dependencies.openssl]
version = "0.10"
features = ["vendored"]

[profile.release]
lto = "fat"
codegen-units = 1
strip = true