[package]
edition = "2024"
rust-version = "1.85"
name = "graphrt-plugin"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Plugin host for graphrt: load node kinds and tools from external processes, HTTP services or WebAssembly modules."
homepage = "https://github.com/BimaPangestu28/graphrt"
documentation = "https://docs.rs/graphrt-plugin"
readme = "README.md"
keywords = [
"plugin",
"json-rpc",
"workflow",
"agent",
"extension",
]
categories = [
"development-tools",
"asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/BimaPangestu28/graphrt"
[features]
default = [
"process",
"http",
"yaml",
"git",
]
git = []
http = [
"dep:reqwest",
"dep:rustls",
]
process = ["tokio/process"]
yaml = ["dep:serde-saphyr"]
[lib]
name = "graphrt_plugin"
path = "src/lib.rs"
[[test]]
name = "e2e"
path = "tests/e2e.rs"
[[test]]
name = "transports"
path = "tests/transports.rs"
[dependencies.futures]
version = "0.3"
features = [
"std",
"async-await",
]
default-features = false
[dependencies.graphrt-core]
version = "0.2.0"
default-features = false
[dependencies.indexmap]
version = "2"
features = ["serde"]
[dependencies.reqwest]
version = "0.13"
features = [
"rustls-no-provider",
"json",
"stream",
]
optional = true
default-features = false
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"std",
"tls12",
]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = [
"derive",
"rc",
]
[dependencies.serde-saphyr]
version = "2"
optional = true
[dependencies.serde_json]
version = "1"
features = [
"preserve_order",
"raw_value",
]
[dependencies.sha2]
version = "0.11"
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"sync",
"time",
"io-util",
"macros",
]
default-features = false
[dev-dependencies.graphrt-core]
version = "0.2.0"
features = [
"tokio",
"jinja",
"yaml",
]
default-features = false
[dev-dependencies.graphrt-plugin-sdk]
version = "0.2.0"
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"time",
"io-util",
"net",
"process",
]
default-features = false
[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
indexing_slicing = "warn"
panic = "deny"
print_stdout = "warn"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"
[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1