[package]
edition = "2021"
rust-version = "1.89"
name = "x0k-syntax"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure tree-sitter syntax tokenizer: maps source code to semantic TokenKind spans with no rendering dependencies, so native and web presenters share one classification and choose their own colors."
readme = "README.md"
keywords = [
"syntax-highlighting",
"tree-sitter",
"tokenizer",
"highlighting",
"parsing",
]
categories = [
"parser-implementations",
"text-processing",
"development-tools",
]
license = "MIT"
repository = "https://github.com/0k-dot-computer/x0k-folio"
[features]
default = ["syntax-highlight"]
syntax-highlight = [
"dep:tree-sitter",
"dep:tree-sitter-json",
"dep:tree-sitter-rust",
"dep:tree-sitter-python",
"dep:tree-sitter-typescript",
]
[lib]
name = "x0k_syntax"
path = "src/lib.rs"
[dependencies.tracing]
version = "0.1"
[dependencies.tree-sitter]
version = "0.24"
optional = true
[dependencies.tree-sitter-json]
version = "0.24"
optional = true
[dependencies.tree-sitter-python]
version = "0.23"
optional = true
[dependencies.tree-sitter-rust]
version = "0.23"
optional = true
[dependencies.tree-sitter-typescript]
version = "0.23"
optional = true