[package]
name = "botstadia-interface"
description = "BotStadia's shared contracts: arena and agent WIT worlds, arena declarations, payloads, replay archives, metrics files and player messages."
version = "0.1.0"
edition = "2024"
license = "MIT OR Apache-2.0"
rust-version = "1.98"
repository = "https://github.com/botstadia/botstadia-interface"
homepage = "https://botstadia.com"
readme = "README.md"
keywords = ["botstadia", "robotics", "wasm", "simulation"]
categories = ["encoding", "wasm"]
include = ["src/**", "wit/**", "README.md", "Cargo.toml", "LICENSE-MIT", "LICENSE-APACHE"]
[features]
default = []
toml = ["dep:toml"]
arena-guest = ["dep:wit-bindgen"]
agent-guest = ["dep:wit-bindgen"]
host = ["dep:wasmtime"]
[dependencies]
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.154"
postcard = { version = "1.1", default-features = false, features = ["alloc"] }
toml = { version = "0.9", optional = true }
wit-bindgen = { version = "0.63.0", optional = true }
wasmtime = { version = "50.0.0", optional = true, default-features = false, features = ["component-model", "runtime"] }
[dev-dependencies]
toml = "0.9"
[lints.rust]
unsafe_code = "deny"
[lints.clippy]
all = { level = "warn", priority = -1 }