@@ -33,6 +33,13 @@ cargo_common_metadata = "allow"
3333
3434[workspace .dependencies ]
3535anyhow = " 1.0.98"
36+ # Temporary fork of ast-grep dependencies using a specific commit from https://github.com/fengmk2/ast-grep.git.
37+ # Reason: Waiting for upstream PR #2359 (https://github.com/ast-grep/ast-grep/pull/2359) to be merged.
38+ # The commit 2f4c6924438a72e136485f0e14cd136b2e17d8d3 includes necessary fixes/features not yet available in the official release.
39+ # Safe to migrate back to the official ast-grep release once PR #2359 is merged and a new version is published.
40+ ast-grep-config = { git = " https://github.com/fengmk2/ast-grep.git" , rev = " 2f4c6924438a72e136485f0e14cd136b2e17d8d3" }
41+ ast-grep-core = { git = " https://github.com/fengmk2/ast-grep.git" , rev = " 2f4c6924438a72e136485f0e14cd136b2e17d8d3" }
42+ ast-grep-language = { git = " https://github.com/fengmk2/ast-grep.git" , rev = " 2f4c6924438a72e136485f0e14cd136b2e17d8d3" , default-features = false , features = [" lang-bash" ] }
3643backon = " 1.3.0"
3744bincode = " 2.0.1"
3845bstr = { version = " 1.12.0" , default-features = false , features = [" alloc" , " std" ] }
@@ -46,6 +53,9 @@ futures-util = "0.3.31"
4653hex = " 0.4.3"
4754httpmock = " 0.7"
4855indoc = " 2.0.5"
56+ napi = { version = " 3.0.0" , default-features = false , features = [" async" , " error_anyhow" ] }
57+ napi-build = " 2"
58+ napi-derive = { version = " 3.0.0" , default-features = false , features = [" type-def" , " strict" ] }
4959nix = { version = " 0.30.1" , features = [" dir" ] }
5060pathdiff = " 0.2.3"
5161petgraph = " 0.8.2"
@@ -77,13 +87,6 @@ vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "edf
7787wax = " 0.6.0"
7888which = " 8.0.0"
7989
80- ast-grep-config = " 0.40.0"
81- ast-grep-core = " 0.40.0"
82- ast-grep-language = " 0.40.0"
83- napi = { version = " 3.0.0" , default-features = false , features = [" async" , " error_anyhow" ] }
84- napi-build = " 2"
85- napi-derive = { version = " 3.0.0" , default-features = false , features = [" type-def" , " strict" ] }
86-
8790[profile .dev ]
8891# Disabling debug info speeds up local and CI builds,
8992# and we don't rely on it for debugging that much.
0 commit comments