Cargo.toml (71 lines of code) (raw):

[package] authors = ["Uber Technologies Inc."] name = "piranha" description = "Polyglot Piranha is a library for performing structural find and replace with deep cleanup." version = "0.3.29" edition = "2021" include = ["pyproject.toml", "src/"] exclude = ["legacy"] license-file = "LICENSE" categories = [ "structural find-replace", "find-replace", "structural seearch", "structural search and replace", "tree-sitter", ] [[bin]] name = "polyglot_piranha" path = "src/main.rs" [lib] name = "polyglot_piranha" path = "src/lib.rs" crate-type = ["cdylib", "rlib"] doctest = false [build-dependencies] cc = "1.0.73" [dependencies] tree-sitter = "0.20.6" tree-sitter-traversal = "0.1.2" json = "0.12.4" toml = "0.8.8" serde = "1.0.136" serde_derive = "1.0.136" colored = "2.0.0" itertools = "0.12.0" regex = "1.5.5" jwalk = "0.8.1" clap = { version = "4.0.3", features = ["derive"] } log = "0.4.16" env_logger = "0.10.0" tempdir = "0.3" serde_json = "1.0.82" ctrlc = "3.4" # TODO: Update if we upgrade tree-sitter to >=0.21 tree-sitter-kotlin = "=0.3.5" tree-sitter-java = "0.20.2" # TODO: Update after: https://github.com/alex-pinkus/tree-sitter-swift/issues/278 resolves tree-sitter-swift = { git = "https://github.com/satyam1749/tree-sitter-swift.git", rev = "08a28993599f1968bc81631a89690503e1db7704" } tree-sitter-python = "0.20.2" tree-sitter-ruby = "0.20.1" tree-sitter-typescript = "0.20.1" # TODO: Update after https://github.com/tree-sitter/tree-sitter-go/pull/103 lands tree-sitter-go = { git = "https://github.com/uber/tree-sitter-go.git", rev = "f8cffd0af7baaf7bf6062e403efe7c0d06319c41" } tree-sitter-thrift = "0.5.0" tree-sitter-strings = { git = "https://github.com/uber/tree-sitter-strings.git" } tree-sitter-query = "0.1.0" tree-sitter-scala = "0.20.1" # newer versions of "tree-sitter-yaml" require that we bump "tree-sitter" version tree-sitter-yaml = "0.0.1" derive_builder = "0.12.0" getset = "0.1.2" pyo3 = "0.20.0" pyo3-log = "0.9.0" glob = "0.3.1" lazy_static = "1.4.0" [features] extension-module = ["pyo3/extension-module"] default = ["extension-module"] [dev-dependencies] assert_cmd = "2.0.7" predicates = "3.0.2"