grain-plugin-wasm 0.0.1-beta3

WebAssembly Component Model plugin runtime for grain. Loads `.wasm` plugins at runtime and exposes their tools through the `AgentTool` trait — no recompiling grain to add a plugin.
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 = "grain-plugin-wasm"
version = "0.0.1-beta3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebAssembly Component Model plugin runtime for grain. Loads `.wasm` plugins at runtime and exposes their tools through the `AgentTool` trait — no recompiling grain to add a plugin."
homepage = "https://github.com/grainbook/grain-agent#readme"
documentation = "https://github.com/grainbook/grain-agent"
readme = "README.md"
keywords = [
    "agent",
    "ai",
    "wasm",
    "plugin",
]
categories = [
    "development-tools",
    "wasm",
]
license = "MIT"
repository = "https://github.com/grainbook/grain-agent"

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

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

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

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

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

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "json",
    "stream",
]
default-features = false

[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",
    "rt",
    "sync",
]

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

[dependencies.wasmtime]
version = "40.0.4"
features = ["component-model"]

[dependencies.wasmtime-wasi]
version = "40.0.4"

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

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

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