pikopiko-cli 0.1.0

Command-line tool and MCP server to check, inspect, render and play MML with pikopiko.
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.89"
name = "pikopiko-cli"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line tool and MCP server to check, inspect, render and play MML with pikopiko."
documentation = "https://docs.rs/pikopiko-cli"
readme = "README.md"
keywords = [
    "mml",
    "chiptune",
    "cli",
    "mcp",
    "music",
]
categories = [
    "command-line-utilities",
    "multimedia::audio",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lovelygenerator/pikopiko"

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

[features]
apu2a03 = ["pikopiko/apu2a03"]
audio = [
    "cli",
    "pikopiko/cpal",
]
cli = [
    "dep:clap",
    "lingokit/clap",
    "defs",
    "dep:pikopiko-visualizer",
]
default = [
    "cli",
    "audio",
    "mcp",
    "lsp",
    "mp3",
    "va",
    "sn76489",
    "apu2a03",
    "scc",
    "dmg",
    "sfx",
    "sfx-hd",
    "vgm",
]
defs = ["dep:toml"]
dmg = ["pikopiko/dmg"]
lsp = [
    "dep:lsp-server",
    "dep:lsp-types",
    "defs",
]
mcp = [
    "dep:rmcp",
    "dep:tokio",
    "lingokit/rmcp",
    "dep:clap",
    "lingokit/clap",
    "defs",
]
mcp-http = [
    "mcp",
    "rmcp/transport-streamable-http-server",
    "dep:hyper",
    "dep:hyper-util",
    "dep:http-body-util",
    "dep:subtle",
    "tokio/net",
    "tokio/rt-multi-thread",
    "tokio/signal",
    "tokio/sync",
]
mp3 = ["dep:audio2mp3-core"]
scc = ["pikopiko/scc"]
sfx = ["pikopiko/sfx"]
sfx-hd = ["pikopiko/sfx-hd"]
sn76489 = ["pikopiko/sn76489"]
va = ["pikopiko/va"]
vgm = [
    "cli",
    "pikopiko/vgm",
    "dep:flate2",
]

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

[[bin]]
name = "pikopiko"
path = "src/main.rs"
doc = false
required-features = ["cli"]

[[bin]]
name = "pikopiko-lsp"
path = "src/bin/pikopiko-lsp.rs"
required-features = ["lsp"]

[[bin]]
name = "pikopiko-mcp"
path = "src/bin/pikopiko-mcp.rs"
required-features = ["mcp"]

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

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

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

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

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

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

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

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

[dependencies.audio2mp3-core]
version = "0.2"
optional = true

[dependencies.clap]
version = "4.6"
features = [
    "derive",
    "string",
]
optional = true

[dependencies.flate2]
version = "1"
features = ["rust_backend"]
optional = true
default-features = false

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

[dependencies.hyper]
version = "1"
features = [
    "server",
    "http1",
]
optional = true
default-features = false

[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
optional = true
default-features = false

[dependencies.lingokit]
version = "0.1.1"

[dependencies.lsp-server]
version = "0.10"
optional = true

[dependencies.lsp-types]
version = "0.97"
optional = true

[dependencies.pikopiko]
version = "0.1.0"
features = [
    "serde",
    "output-eq",
]

[dependencies.pikopiko-visualizer]
version = "0.1.0"
optional = true

[dependencies.rmcp]
version = "~3.10"
features = [
    "server",
    "transport-io",
    "macros",
]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.subtle]
version = "2"
optional = true
default-features = false

[dependencies.sys-locale]
version = "0.3"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "io-std",
]
optional = true

[dependencies.toml]
version = "1"
optional = true

[dev-dependencies.rmcp]
version = "~3.10"
features = [
    "client",
    "transport-child-process",
]

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "io-std",
    "process",
]

[build-dependencies.lingokit-build]
version = "0.1.1"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"