[package]
edition = "2024"
rust-version = "1.88"
name = "multicast"
version = "2.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A declarative CLI framework for Rust with typed commands, agent discovery, HTTP, and MCP"
readme = "README.md"
license = "MIT"
repository = "https://github.com/douglance/multicast"
resolver = "2"
[features]
agent-plugins = [
"yaml",
"dep:url",
"dep:http",
]
agent-plugins-mcp = [
"agent-plugins",
"dep:reqwest",
"rmcp/transport-child-process",
]
cli = []
default = [
"cli",
"toon",
"tokens",
]
http = [
"axum",
"tower",
"yaml",
"dep:http",
"dep:url",
"dep:reqwest",
]
mcp = []
mcp-files = []
openapi = [
"oas3",
"openapiv3",
"dep:reqwest",
"yaml",
]
tokens = ["tiktoken-rs"]
toon = ["toon-format"]
yaml = ["serde_yaml_ng"]
[lib]
name = "multicast"
path = "src/lib.rs"
[[example]]
name = "agent-plugin-fixture"
path = "examples/agent-plugin-fixture.rs"
[[example]]
name = "greet"
path = "examples/greet.rs"
[[example]]
name = "mcp_conformance"
path = "examples/mcp_conformance.rs"
required-features = ["http"]
[[example]]
name = "mcp_conformance_portable"
path = "examples/mcp_conformance_portable.rs"
required-features = ["http"]
[[example]]
name = "todoapp"
path = "examples/todoapp.rs"
[[test]]
name = "builtin_shadowing"
path = "tests/builtin_shadowing.rs"
[[test]]
name = "cli_surface"
path = "tests/cli_surface.rs"
[[test]]
name = "compile"
path = "tests/compile.rs"
[[test]]
name = "e2e"
path = "tests/e2e.rs"
[[test]]
name = "parser_test"
path = "tests/parser_test.rs"
[[test]]
name = "raw_commands"
path = "tests/raw_commands.rs"
[[test]]
name = "telemetry"
path = "tests/telemetry.rs"
[[test]]
name = "typed"
path = "tests/typed.rs"
[dependencies.async-stream]
version = "0.3"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
features = [
"json",
"query",
"form",
"matched-path",
"original-uri",
]
optional = true
default-features = false
[dependencies.dirs]
version = "6"
[dependencies.futures]
version = "0.3"
[dependencies.http]
version = "1"
optional = true
[dependencies.multicast-macros]
version = "2.0.0"
[dependencies.multicast-mcp-protocol]
version = "2.0.0"
[dependencies.oas3]
version = "0.20"
optional = true
[dependencies.openapiv3]
version = "2"
optional = true
[dependencies.opentelemetry]
version = "0.33"
features = [
"trace",
"metrics",
]
default-features = false
[dependencies.schemars]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml_ng]
version = "0.10"
optional = true
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dependencies.tiktoken-rs]
version = "0.6"
optional = true
[dependencies.tokio]
version = "1"
features = [
"sync",
"macros",
]
default-features = false
[dependencies.tokio-stream]
version = "0.1"
[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[dependencies.toon-format]
version = "0.4"
optional = true
default-features = false
[dependencies.tower]
version = "0.5"
optional = true
[dependencies.url]
version = "2"
optional = true
[dependencies.web-time]
version = "1"
[dev-dependencies.async-stream]
version = "0.3"
[dev-dependencies.async-trait]
version = "0.1"
[dev-dependencies.regex-lite]
version = "0.1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
]
[dev-dependencies.trybuild]
version = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.axum]
version = "0.8"
features = [
"tokio",
"http1",
]
optional = true
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"stream",
]
optional = true
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rmcp]
version = "=3.0.0-beta.5"
features = [
"client",
"server",
"elicitation",
"transport-io",
"transport-streamable-http-client-reqwest",
"transport-streamable-http-server",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
"io-std",
"io-util",
"rt-multi-thread",
"time",
"signal",
"process",
"net",
]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.opentelemetry_sdk]
version = "0.33"
features = [
"trace",
"metrics",
"testing",
]
default-features = false