opencode/packages/cli-rs/crates/plugin/Cargo.toml
Simon Klee 6b1df0cceb
feat(cli-rs): add the native CLI and TUI (#63477)
Add packages/cli-rs, an OpenCode client written in Rust on OpenTUI's Rust crates. It is a client only.
2026-11-22 00:07:01 +01:00

41 lines
1.1 KiB
TOML

[package]
name = "opencode-plugin"
description = "Plugin loaders and host runtime for the native TUI."
version.workspace = true
edition.workspace = true
license.workspace = true
publish.workspace = true
[lints]
workspace = true
[dependencies]
opentui.workspace = true
opencode-ui.workspace = true
log.workspace = true
opencode-plugin-abi.workspace = true
opencode-util.workspace = true
serde.workspace = true
serde_json.workspace = true
unicode-segmentation = "1"
unicode-width.workspace = true
opencode-api-types.workspace = true
url.workspace = true
ring.workspace = true
mlua = { workspace = true, optional = true }
[features]
# Disable the JS host at runtime with `OPENCODE_PLUGIN_JS=0`.
default = ["ts", "luau"]
ts = []
# Disable Luau at runtime with `OPENCODE_PLUGIN_LUAU=0`.
luau = ["dep:mlua"]
[target.'cfg(unix)'.dependencies]
# Who owns the approvals file, and opening it without following a link.
libc.workspace = true
[dev-dependencies]
opencode-util.workspace = true
# The operations table test's Rust column (`client::probe`).
opencode-api-types = { workspace = true, features = ["probe"] }