xyz-rust 0.4.13

One definition, three interfaces(CLI / HTTP / MCP)— a command toolkit for Rust
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 = "2024"
rust-version = "1.89"
name = "xyz-rust"
version = "0.4.13"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "One definition, three interfaces(CLI / HTTP / MCP)— a command toolkit for Rust"
readme = "README.md"
keywords = [
    "cli",
    "http",
    "mcp",
    "command",
    "toolkit",
]
categories = [
    "command-line-interface",
    "web-programming",
    "api-bindings",
]
license = "MIT"
repository = "https://github.com/ejfkdev/xyz-rust"

[features]
cli = ["dep:ctrlc"]
default = [
    "cli",
    "http",
    "mcp",
]
http = ["http-stack"]
http-stack = [
    "dep:tokio",
    "dep:axum",
    "dep:axum-server",
    "dep:tower-http",
    "dep:rustls",
    "dep:rustls-pemfile",
    "dep:futures-util",
    "dep:tokio-util",
]
mcp = [
    "dep:rmcp",
    "http-stack",
]

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls-no-provider"]
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.ctrlc]
version = "3.4"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.rmcp]
version = "=3.6.0"
features = [
    "server",
    "transport-io",
    "transport-worker",
    "server-side-http",
    "transport-streamable-http-server",
]
optional = true
default-features = false

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
]
optional = true
default-features = false

[dependencies.rustls-pemfile]
version = "2"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "signal",
    "net",
    "time",
]
optional = true

[dependencies.tokio-util]
version = "0.7"
optional = true

[dependencies.tower-http]
version = "0.7"
features = [
    "compression-gzip",
    "timeout",
]
optional = true

[dependencies.xyz-rust-macros]
version = "0.4.13"

[dev-dependencies.bytes]
version = "1"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]