# 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 = "grain-script-boa"
version = "0.0.1-beta3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Boa-based JavaScript scripting layer for grain-agent. Loads user `.js` files from disk, runs them in an isolated boa_engine::Context owned by a dedicated worker thread, and exposes registered tools to the agent through the `grain_ai_agent_headless::Extension` trait."
homepage = "https://github.com/grainbook/grain-agent#readme"
documentation = "https://github.com/grainbook/grain-agent"
readme = "README.md"
keywords = [
    "agent",
    "ai",
    "scripting",
    "javascript",
    "boa",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/grainbook/grain-agent"

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

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

[dependencies.boa_engine]
version = "0.21"

[dependencies.grain-agent-core]
version = "0.0.1-beta3"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
    "macros",
    "time",
    "net",
    "io-util",
    "sync",
    "macros",
    "rt",
]

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
    "macros",
    "time",
    "net",
    "io-util",
    "macros",
    "rt-multi-thread",
]
