tree-sitter-loader 0.27.0

Locates, builds, and loads tree-sitter grammars at runtime
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.90"
name = "tree-sitter-loader"
version = "0.27.0"
authors = [
    "Max Brunsfeld <maxbrunsfeld@gmail.com>",
    "Amaan Qureshi <amaanq12@gmail.com>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Locates, builds, and loads tree-sitter grammars at runtime"
homepage = "https://tree-sitter.github.io/tree-sitter"
documentation = "https://docs.rs/tree-sitter-loader"
readme = "README.md"
keywords = [
    "incremental",
    "parsing",
]
categories = [
    "command-line-utilities",
    "parsing",
]
license = "MIT"
repository = "https://github.com/tree-sitter/tree-sitter"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "tree-sitter-highlight",
    "tree-sitter-tags",
]
wasm = ["tree-sitter/wasm"]

[lib]
name = "tree_sitter_loader"
path = "src/loader.rs"

[dependencies.cc]
version = "1.2.63"

[dependencies.etcetera]
version = "0.11.0"

[dependencies.libloading]
version = "0.9.0"

[dependencies.log]
version = "0.4.30"
features = ["std"]

[dependencies.once_cell]
version = "1.21.3"

[dependencies.regex]
version = "1.12.3"

[dependencies.semver]
version = "1.0.27"
features = ["serde"]

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.150"
features = ["preserve_order"]

[dependencies.tempfile]
version = "3.25.0"

[dependencies.thiserror]
version = "2.0.18"

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

[dependencies.tree-sitter-highlight]
version = "0.27.0"
optional = true

[dependencies.tree-sitter-tags]
version = "0.27.0"
optional = true

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "deny"
if_not_else = "allow"
items_after_statements = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
multiple_crate_versions = "allow"
option_if_let_else = "allow"
similar_names = "allow"
string_lit_as_bytes = "allow"
struct_excessive_bools = "allow"
todo = "deny"
too_many_lines = "allow"
tuple_array_conversions = "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"