# 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 = "everruns-core"
version = "0.8.34"
authors = ["Everruns Contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core agent abstractions for Everruns - agent loop, events, tools, LLM providers"
homepage = "https://everruns.com"
documentation = "https://docs.rs/everruns-core"
readme = "README.md"
license = "MIT"
repository = "https://github.com/everruns/everruns"
resolver = "2"

[features]
default = ["llm-tests"]
embedded-platform-docs = ["dep:include_dir"]
llm-tests = []
openapi = ["utoipa"]
sqlx = ["dep:sqlx"]
tree-sitter-outlines = [
    "dep:tree-sitter",
    "dep:tree-sitter-rust",
    "dep:tree-sitter-typescript",
    "dep:tree-sitter-python",
]
ui-capabilities = [
    "dep:everruns-openui",
    "dep:everruns-a2ui",
]

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

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

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

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

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

[dependencies.a2a]
version = "0.3"
package = "a2a-lf"

[dependencies.a2a-client]
version = "0.1"
package = "a2a-client-lf"

[dependencies.anyhow]
version = "1.0"

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

[dependencies.base64]
version = "0.22"

[dependencies.bashkit]
version = "0.6.0"
features = ["jq"]

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

[dependencies.ed25519-dalek]
version = "2"
features = ["rand_core"]

[dependencies.eventsource-stream]
version = "0.2"

[dependencies.everruns-a2ui]
version = "0.8.34"
optional = true

[dependencies.everruns-config]
version = "0.8.34"

[dependencies.everruns-openui]
version = "0.8.34"
optional = true

[dependencies.fetchkit]
version = "=0.2.0"
features = ["bot-auth"]

[dependencies.futures]
version = "0.3"

[dependencies.include_dir]
version = "0.7"
optional = true

[dependencies.inventory]
version = "0.3"

[dependencies.llmsim]
version = "0.3.0"

[dependencies.opentelemetry]
version = "0.31"

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "http-proto",
    "reqwest-client",
]

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]

[dependencies.rand]
version = "0.9"

[dependencies.regex]
version = "1.11"

[dependencies.reqwest]
version = "0.13.2"
features = [
    "json",
    "stream",
    "rustls",
    "blocking",
    "form",
    "json",
    "stream",
    "rustls",
    "blocking",
]
default-features = false

[dependencies.rustls]
version = "0.23"
features = ["ring"]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.similar]
version = "2"

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

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.50"
features = [
    "full",
    "sync",
    "rt",
    "process",
    "time",
]

[dependencies.tracing]
version = "0.1"

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

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

[dependencies.tree-sitter]
version = "0.24"
optional = true

[dependencies.tree-sitter-python]
version = "0.23"
optional = true

[dependencies.tree-sitter-rust]
version = "0.23"
optional = true

[dependencies.tree-sitter-typescript]
version = "0.23"
optional = true

[dependencies.url]
version = "2"

[dependencies.utoipa]
version = "5.4"
features = [
    "axum_extras",
    "chrono",
    "uuid",
]
optional = true

[dependencies.uuid]
version = "1.11"
features = [
    "v4",
    "v5",
    "v7",
    "serde",
]

[dev-dependencies.a2a-server]
version = "0.3"
package = "a2a-server-lf"

[dev-dependencies.axum]
version = "0.8"
features = ["macros"]

[dev-dependencies.insta]
version = "1.40"
features = [
    "json",
    "redactions",
]

[dev-dependencies.tokio]
version = "1.50"
features = [
    "full",
    "full",
    "test-util",
]

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

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