syntaxmate 0.1.0

Rust-native TextMate syntax highlighting with bundled grammars and themes
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "syntaxmate"
version = "0.1.0"
build = false
include = [
    "src/**",
    "assets/grammars/**",
    "assets/grammars.bundle",
    "assets/themes/**",
    "examples/**",
    "tests/*.rs",
    "tools/build-bundle.rs",
    "/Cargo.toml",
    "/README.md",
    "/CHANGELOG.md",
    "/CONTRIBUTING.md",
    "/CODE_OF_CONDUCT.md",
    "/EXTRACTION.md",
    "/SECURITY.md",
    "/SUPPORT.md",
    "docs/api-design.md",
    "docs/architecture.md",
    "docs/assets.md",
    "docs/compatibility.md",
    "docs/language-status.md",
    "docs/quality.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 = true
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"

[[bin]]
name = "syntaxmate-bundle"
path = "tools/build-bundle.rs"
required-features = ["bundle-tools"]

[[example]]
name = "ansi"
path = "examples/ansi.rs"
required-features = [
    "bundled-grammars",
    "bundled-themes",
    "ansi",
]

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "bundle-measure"
path = "examples/bundle-measure.rs"

[[example]]
name = "custom_grammar"
path = "examples/custom_grammar.rs"

[[example]]
name = "custom_theme"
path = "examples/custom_theme.rs"

[[example]]
name = "detect_path"
path = "examples/detect_path.rs"

[[example]]
name = "html"
path = "examples/html.rs"
required-features = [
    "bundled-grammars",
    "bundled-themes",
    "html",
]

[[example]]
name = "incremental"
path = "examples/incremental.rs"

[[example]]
name = "profile-cold"
path = "examples/profile-cold.rs"

[[example]]
name = "regex-parse"
path = "examples/regex-parse.rs"
required-features = ["diagnostics"]

[[example]]
name = "regex-replay"
path = "examples/regex-replay.rs"
required-features = ["diagnostics"]

[[example]]
name = "theme-resolve"
path = "examples/theme-resolve.rs"
required-features = ["bundled-themes"]

[[test]]
name = "custom_theme_session"
path = "tests/custom_theme_session.rs"
required-features = ["bundled-grammars"]

[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-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"