# 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.91"
name = "editor-core-treesitter"
version = "0.4.1"
authors = ["Chen Xu <windoze@0d0a.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tree-sitter integration for editor-core (highlighting, folding, incremental parsing)."
homepage = "https://github.com/windoze/editor-core"
documentation = "https://docs.rs/editor-core/"
readme = "README.md"
keywords = [
    "editor",
    "text-editor",
    "unicode",
    "tree-sitter",
    "headless",
]
categories = [
    "text-editors",
    "text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/windoze/editor-core"
resolver = "2"

[lib]
name = "editor_core_treesitter"
path = "src/lib.rs"

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

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

[[test]]
name = "treesitter_indenter"
path = "tests/treesitter_indenter.rs"

[[test]]
name = "treesitter_processor"
path = "tests/treesitter_processor.rs"

[[test]]
name = "treesitter_registry"
path = "tests/treesitter_registry.rs"

[dependencies.editor-core]
version = "0.4.1"

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

[dependencies.serde_json]
version = "1"

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

[dependencies.tree-sitter]
version = "0.26"
features = ["wasm"]

[dev-dependencies.tempfile]
version = "3"
