# 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 = "2021"
rust-version = "1.84"
name = "tree-sitter-highlight"
version = "0.26.3"
authors = [
    "Max Brunsfeld <maxbrunsfeld@gmail.com>",
    "Tim Clem <timothy.clem@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for performing syntax highlighting with Tree-sitter"
homepage = "https://tree-sitter.github.io/tree-sitter"
documentation = "https://docs.rs/tree-sitter-highlight"
readme = "README.md"
keywords = [
    "incremental",
    "parsing",
    "syntax",
    "highlighting",
]
categories = [
    "parsing",
    "text-editors",
]
license = "MIT"
repository = "https://github.com/tree-sitter/tree-sitter"

[lib]
name = "tree_sitter_highlight"
crate-type = [
    "lib",
    "staticlib",
]
path = "src/highlight.rs"

[dependencies.regex]
version = "1.11.3"

[dependencies.streaming-iterator]
version = "0.1.9"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tree-sitter]
version = "0.26.3"

[lints.clippy]
branches_sharing_code = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
checked_conversions = "allow"
cognitive_complexity = "allow"
collection_is_never_read = "allow"
dbg_macro = "deny"
fallible_impl_from = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
inline_always = "allow"
items_after_statements = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
needless_for_each = "allow"
obfuscated_if_else = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
range_plus_one = "allow"
redundant_clone = "allow"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
similar_names = "allow"
string_lit_as_bytes = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
todo = "deny"
too_many_lines = "allow"
transmute_undefined_repr = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
used_underscore_items = "allow"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
mismatched_lifetime_syntaxes = "allow"
