# 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.79"
name = "ast-grep-language"
version = "0.43.0"
authors = ["Herrington Darkholme <2883231+HerringtonDarkholme@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Search and Rewrite code at large scale using precise AST pattern"
readme = false
keywords = [
    "ast",
    "pattern",
    "codemod",
    "search",
    "rewrite",
]
license = "MIT"
repository = "https://github.com/ast-grep/ast-grep"

[features]
builtin-parser = [
    "tree-sitter-bash",
    "tree-sitter-c",
    "tree-sitter-cpp",
    "tree-sitter-c-sharp",
    "tree-sitter-css",
    "tree-sitter-dart",
    "tree-sitter-elixir",
    "tree-sitter-go",
    "tree-sitter-haskell",
    "tree-sitter-hcl",
    "tree-sitter-html",
    "tree-sitter-java",
    "tree-sitter-javascript",
    "tree-sitter-json",
    "tree-sitter-kotlin",
    "tree-sitter-lua",
    "tree-sitter-md",
    "tree-sitter-nix",
    "tree-sitter-php",
    "tree-sitter-python",
    "tree-sitter-ruby",
    "tree-sitter-rust",
    "tree-sitter-scala",
    "tree-sitter-solidity",
    "tree-sitter-swift",
    "tree-sitter-typescript",
    "tree-sitter-yaml",
]
default = ["builtin-parser"]
napi-lang = [
    "tree-sitter-css",
    "tree-sitter-html",
    "tree-sitter-javascript",
    "tree-sitter-typescript",
]

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

[dependencies.ast-grep-core]
version = "0.43.0"
features = ["tree-sitter"]
default-features = false

[dependencies.ignore]
version = "0.4.22"

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

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

[dependencies.tree-sitter-bash]
version = "0.25.0"
optional = true

[dependencies.tree-sitter-c]
version = "0.24.0"
optional = true

[dependencies.tree-sitter-c-sharp]
version = "0.23.0"
optional = true

[dependencies.tree-sitter-cpp]
version = "0.23.0"
optional = true

[dependencies.tree-sitter-css]
version = "0.25.0"
optional = true

[dependencies.tree-sitter-dart]
version = "0.2.0"
optional = true

[dependencies.tree-sitter-elixir]
version = "0.3.0"
optional = true

[dependencies.tree-sitter-go]
version = "0.25.0"
optional = true

[dependencies.tree-sitter-haskell]
version = "0.23.0"
optional = true

[dependencies.tree-sitter-hcl]
version = "1.1.0"
optional = true

[dependencies.tree-sitter-html]
version = "0.23.0"
optional = true

[dependencies.tree-sitter-java]
version = "0.23.0"
optional = true

[dependencies.tree-sitter-javascript]
version = "0.25.0"
optional = true

[dependencies.tree-sitter-json]
version = "0.24.8"
optional = true

[dependencies.tree-sitter-kotlin]
version = "0.4.1"
optional = true
package = "tree-sitter-kotlin-sg"

[dependencies.tree-sitter-lua]
version = "0.5.0"
optional = true

[dependencies.tree-sitter-md]
version = "0.5.3"
optional = true

[dependencies.tree-sitter-nix]
version = "0.3.0"
optional = true

[dependencies.tree-sitter-php]
version = "0.24.0"
optional = true

[dependencies.tree-sitter-python]
version = "0.25.0"
optional = true

[dependencies.tree-sitter-ruby]
version = "0.23.0"
optional = true

[dependencies.tree-sitter-rust]
version = "0.24.0"
optional = true

[dependencies.tree-sitter-scala]
version = "0.26.0"
optional = true

[dependencies.tree-sitter-solidity]
version = "1.2.11"
optional = true

[dependencies.tree-sitter-swift]
version = "0.7.0"
optional = true

[dependencies.tree-sitter-typescript]
version = "0.23.2"
optional = true

[dependencies.tree-sitter-yaml]
version = "0.7.0"
optional = true
