tuika-codeformatters 0.3.0

Tree-sitter syntax highlighting for tuika's CodeBlock and Markdown components — a ready-made Highlighter implementation.
Documentation
[package]
name = "tuika-codeformatters"
version = "0.3.0"
# Identity, MSRV, and license come from `[workspace.package]` in the root
# manifest — see the comment there for what is and isn't shared.
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
description = "Tree-sitter syntax highlighting for tuika's CodeBlock and Markdown components — a ready-made Highlighter implementation."
homepage.workspace = true
repository.workspace = true
readme = "README.md"
keywords = ["tui", "syntax-highlighting", "tree-sitter", "ratatui", "markdown"]
categories = ["command-line-interface", "text-processing"]
# Same rule as the root package: a demo recording is a GitHub-only asset. This
# crate's README embeds `docs/languages.gif` by absolute
# `raw.githubusercontent.com` URL, so nothing in the published `.crate` reads it
# — shipping it just adds ~400 KiB to every download. `tests/packaging.rs` in the
# root package guards this for both crates.
exclude = ["docs/*.gif"]

# See the root Cargo.toml: disable the default lib bench harness so `cargo bench`
# runs only the Criterion target below.
[lib]
bench = false

[dependencies]
tuika = { version = "0.5.0", path = "../.." }
ratatui = "0.30.2"
tree-sitter = "0.26"
tree-sitter-highlight = "0.26"
tree-sitter-c-sharp = "0.23"
tree-sitter-css = "0.25"
tree-sitter-go = "0.25"
tree-sitter-html = "0.23"
tree-sitter-java = "0.23"
tree-sitter-php = "0.24"
tree-sitter-python = "0.25"
tree-sitter-ruby = "0.23"
tree-sitter-rust = "0.24"
tree-sitter-scala = "0.26"
tree-sitter-sequel = "0.3"
tree-sitter-typescript = "0.23"
tree-sitter-zig = "1"

[dev-dependencies]
# The runnable examples drive a full-screen loop; tuika owns the rendering,
# crossterm just supplies the raw event source (the same pair tuika's own
# examples use).
crossterm = "0.29"
# Benchmark harness — same lean configuration as tuika (see the root Cargo.toml).
criterion = { version = "0.8", default-features = false, features = [
    "cargo_bench_support",
] }
# See the root Cargo.toml — instruction-count harness for the CI regression gate.
iai-callgrind = "0.16.1"

[[bench]]
name = "highlight"
harness = false

[[bench]]
name = "highlight_iai"
harness = false