# 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.94"
name = "branchforge"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Graph-first Rust runtime for durable LLM agents"
documentation = "https://github.com/junyeong-ai/branchforge/tree/main/docs"
readme = "README.md"
keywords = [
    "ai",
    "agent",
    "llm",
    "graph",
    "runtime",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/junyeong-ai/branchforge"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
aws = [
    "aws-config",
    "aws-credential-types",
    "aws-sigv4",
    "aws-smithy-runtime-api",
    "crc32fast",
]
azure = [
    "azure_identity",
    "azure_core",
]
cli-auth = []
cloud-all = [
    "aws",
    "gcp",
    "azure",
    "openai",
    "gemini",
]
default = []
file-resources = []
full = [
    "mcp",
    "cloud-all",
    "persistence-all",
    "otel",
    "plugins",
    "cli-auth",
]
gcp = ["gcp_auth"]
gemini = []
jsonl = []
mcp = ["rmcp"]
multimedia = ["pdf-extract"]
openai = []
otel = [
    "opentelemetry",
    "opentelemetry_sdk",
    "opentelemetry-otlp",
    "opentelemetry-semantic-conventions",
    "tracing-opentelemetry",
    "tracing-subscriber",
]
persistence-all = [
    "jsonl",
    "postgres",
    "redis-backend",
]
plugins = ["file-resources"]
postgres = ["sqlx"]
redis-backend = ["redis"]

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

[[example]]
name = "advanced_test"
path = "examples/advanced_test.rs"
required-features = [
    "cli-auth",
    "file-resources",
]

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

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

[[example]]
name = "server_tools"
path = "examples/server_tools.rs"
required-features = [
    "cli-auth",
    "file-resources",
]

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.ahash]
version = "0.8"

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

[dependencies.aws-config]
version = "^1.8"
optional = true

[dependencies.aws-credential-types]
version = "^1.2"
optional = true

[dependencies.aws-sigv4]
version = "^1.3"
optional = true

[dependencies.aws-smithy-runtime-api]
version = "^1.9"
optional = true

[dependencies.azure_core]
version = "0.33"
optional = true

[dependencies.azure_identity]
version = "0.33"
optional = true

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "^1.11.1"

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

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

[dependencies.dashmap]
version = "^6.1"

[dependencies.directories]
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.gcp_auth]
version = "0.12"
optional = true

[dependencies.glob]
version = "0.3"

[dependencies.mime_guess]
version = "2"

[dependencies.opentelemetry]
version = "0.31"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "http-proto",
    "metrics",
]
optional = true

[dependencies.opentelemetry-semantic-conventions]
version = "0.31"
optional = true

[dependencies.opentelemetry_sdk]
version = "0.31"
features = [
    "rt-tokio",
    "metrics",
]
optional = true

[dependencies.pdf-extract]
version = "0.10"
optional = true

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.rand]
version = "0.10"

[dependencies.redis]
version = "1"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
    "rustls",
    "http2",
    "multipart",
]
default-features = false

[dependencies.rmcp]
version = "1.3"
features = [
    "client",
    "transport-child-process",
    "client-side-sse",
    "reqwest",
]
optional = true

[dependencies.rust_decimal]
version = "1"
features = [
    "serde",
    "serde-with-str",
]

[dependencies.rust_decimal_macros]
version = "1"

[dependencies.rustix]
version = "1.1"
features = [
    "fs",
    "process",
]

[dependencies.schemars]
version = "1.2"

[dependencies.secrecy]
version = "0.10"
features = ["serde"]

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

[dependencies.serde_json]
version = "^1.0"

[dependencies.serde_yaml_bw]
version = "2.5"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "postgres",
    "json",
    "chrono",
    "uuid",
    "rust_decimal",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "^1.49"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "io-util",
    "process",
    "signal",
]

[dependencies.tokio-util]
version = "0.7"
features = ["time"]

[dependencies.tracing]
version = "^0.1"

[dependencies.tracing-opentelemetry]
version = "0.32"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true

[dependencies.tree-sitter]
version = "0.26"

[dependencies.tree-sitter-bash]
version = "0.25"

[dependencies.url]
version = "2"

[dependencies.urlencoding]
version = "2"

[dependencies.uuid]
version = "^1.10"
features = [
    "v4",
    "serde",
]

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

[dev-dependencies.tokio-test]
version = "0.4"

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

[dev-dependencies.wiremock]
version = "0.6"

[target.'cfg(target_os = "linux")'.dependencies.landlock]
version = "0.4"
