webarcade-api 0.1.1

Plugin API for WebArcade - Build native desktop plugins with Rust
Documentation
[package]

name = "webarcade-api"

version = "0.1.1"

edition = "2021"

description = "Plugin API for WebArcade - Build native desktop plugins with Rust"

license = "MIT"

repository = "https://github.com/warcade/api"

homepage = "https://github.com/warcade/core"

documentation = "https://docs.rs/webarcade-api"

keywords = ["webarcade", "plugin", "ffi", "desktop", "webview"]

categories = ["api-bindings", "gui"]

readme = "README.md"



[features]

default = []

# Enable bridge functionality (HTTP handlers, tokio runtime)

# Only needed for plugins that define routes in Cargo.toml

bridge = ["dep:tokio", "dep:http", "dep:bytes", "dep:base64"]



[dependencies]

# Serialization (always required for FFI)

serde = { version = "1.0", features = ["derive"] }

serde_json = "1.0"



# Logging (always available)

log = "0.4"



# Bridge dependencies (optional - only for plugins with HTTP routes)

base64 = { version = "0.22", optional = true }

tokio = { version = "1.0", default-features = false, features = ["rt-multi-thread"], optional = true }

http = { version = "1.0", optional = true }

bytes = { version = "1.0", optional = true }