rpi-plugin-sdk 0.9.2

Stable C ABI and optional provider development helpers for rpi Rust-native plugins
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 = "2021"
rust-version = "1.78"
name = "rpi-plugin-sdk"
version = "0.9.2"
authors = ["BigFish <fuwei201473@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stable C ABI and optional provider development helpers for rpi Rust-native plugins"
homepage = "https://rpi.laofu.online/"
documentation = "https://docs.rs/rpi-plugin-sdk"
readme = "README.md"
keywords = [
    "agent",
    "llm",
    "ai",
    "plugin",
    "ffi",
]
categories = [
    "api-bindings",
    "development-tools::ffi",
]
license = "MIT"
repository = "https://github.com/bigfish1913/pi-rust"

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

[features]
binary = [
    "json",
    "dep:serde",
    "dep:ciborium",
]
default = ["json"]
json = ["dep:serde_json"]
process = [
    "dep:windows-sys",
    "dep:libc",
]
provider = [
    "json",
    "dep:rpi-ai",
    "dep:tokio",
    "dep:serde",
    "dep:reqwest",
]
stdio = [
    "dep:windows-sys",
    "dep:libc",
]

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

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

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

[dependencies.ciborium]
version = "0.2"
optional = true

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

[dependencies.rpi-ai]
version = "0.9.2"
features = ["providers"]
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]
optional = true

[dependencies.serde_json]
version = "1"
features = [
    "preserve_order",
    "raw_value",
]
optional = true

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "fs",
    "process",
    "sync",
    "io-util",
]
optional = true

[target."cfg(unix)".dependencies.libc]
version = "0.2"
optional = true

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_System_JobObjects",
    "Win32_System_Threading",
    "Win32_Security",
    "Win32_System_Diagnostics_ToolHelp",
    "Win32_System_IO",
    "Win32_Storage_FileSystem",
    "Win32_System_Console",
    "Win32_System_Pipes",
]
optional = true