[package]
edition = "2024"
rust-version = "1.88"
name = "syntaxmate"
version = "0.2.1"
build = false
include = [
"src/**",
"assets/grammars/licenses/**",
"assets/grammars/licenses.json",
"assets/grammars/SOURCE.toml",
"assets/grammars.bundle",
"assets/themes/**",
"examples/html.rs",
"examples/ansi.rs",
"/Cargo.toml",
"/README.md",
"/CHANGELOG.md",
"/CONTRIBUTING.md",
"/CODE_OF_CONDUCT.md",
"/EXTRACTION.md",
"/SECURITY.md",
"/SUPPORT.md",
"docs/architecture.md",
"docs/assets.md",
"docs/compatibility.md",
"docs/language-status.md",
"docs/rendering.md",
"docs/releasing.md",
"/LICENSE",
"/THIRD_PARTY_LICENSES.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust-native TextMate syntax highlighting with bundled grammars and themes"
documentation = "https://docs.rs/syntaxmate"
readme = "README.md"
keywords = [
"syntax-highlighting",
"textmate",
"grammar",
"theme",
]
categories = [
"parsing",
"text-processing",
"development-tools",
]
license = "MIT"
repository = "https://github.com/phongndo/syntaxmate"
[package.metadata.docs.rs]
all-features = false
default-features = false
features = [
"bundled-grammars",
"bundled-themes",
"html",
"ansi",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
ansi = []
bundle-tools = ["dep:toml"]
bundled-grammars = []
bundled-themes = []
default = [
"bundled-grammars",
"bundled-themes",
"html",
"ansi",
]
diagnostics = []
html = []
[lib]
name = "syntaxmate"
path = "src/lib.rs"
[[example]]
name = "ansi"
path = "examples/ansi.rs"
required-features = [
"bundled-grammars",
"bundled-themes",
"ansi",
]
[[example]]
name = "html"
path = "examples/html.rs"
required-features = [
"bundled-grammars",
"bundled-themes",
"html",
]
[dependencies.memchr]
version = "2.7"
[dependencies.miniz_oxide]
version = "0.9.1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.toml]
version = "1.1"
optional = true
[dependencies.unicode-general-category]
version = "1.1"
[dependencies.unicode-ident]
version = "1.0"
[dependencies.unicode-script]
version = "0.5"
[dependencies.unicode-segmentation]
version = "1.13"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.toml]
version = "1.1"
[profile.release]
lto = "thin"
codegen-units = 1
panic = "abort"