- create a map of byte offsets to Kakoune ranges once, to avoid having to iterate the content for every highlight event - create a direct lookup for faces from the token index passed by the highlighter event, rather than performing a string map lookup each time - minimize allocations by pushing only a single string with sufficient capacity, rather than building small strings
37 lines
862 B
TOML
37 lines
862 B
TOML
[package]
|
|
name = "kak-highlight"
|
|
author = "Lucas Schwiderski"
|
|
description = "Tree-sitter-based highlighting for Kakoune"
|
|
version = "1.0.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
clap = { version = "4.2.1", features = ["cargo", "color", "unicode", "std", "derive"] }
|
|
color-eyre = "0.6.2"
|
|
crossbeam = "0.8.2"
|
|
serde = { version = "1.0.160", features = ["derive"] }
|
|
signal-hook = "0.3.15"
|
|
toml = "0.7.3"
|
|
tracing = "0.1.37"
|
|
tracing-error = "0.2.0"
|
|
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
|
|
tree-sitter = "0.20.10"
|
|
tree-sitter-highlight = "0.20.1"
|
|
tree-sitter-rust = "0.20.3"
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.4.0"
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "kak-highlight"
|
|
path = "src/main.rs"
|
|
bench = false
|
|
|
|
[[bench]]
|
|
name = "worker"
|
|
harness = false
|