File tree-sitter-no-cc.patch of Package nodejs-vscode-tree-sitter-wasm
--- vendor/tree-sitter/xtask/Cargo.toml.orig 2025-02-18 03:54:23.000000000 +0100
+++ vendor/tree-sitter/xtask/Cargo.toml 2025-03-08 10:23:55.958295974 +0100
@@ -18,15 +18,12 @@ workspace = true
anstyle.workspace = true
anyhow.workspace = true
bindgen = { version = "0.71.1" }
-cc.workspace = true
clap.workspace = true
-git2.workspace = true
indoc.workspace = true
toml.workspace = true
regex.workspace = true
semver.workspace = true
serde.workspace = true
serde_json.workspace = true
-ureq = "3.0.0"
notify = "8.0.0"
notify-debouncer-full = "0.5.0"
--- vendor/tree-sitter/xtask/src/main.rs.orig 2025-03-08 10:26:38.548264580 +0100
+++ vendor/tree-sitter/xtask/src/main.rs 2025-03-08 10:29:43.388227180 +0100
@@ -1,20 +1,16 @@
mod benchmark;
mod build_wasm;
-mod bump;
mod check_wasm_exports;
mod clippy;
mod fetch;
mod generate;
mod test;
-mod upgrade_emscripten;
-mod upgrade_wasmtime;
use std::path::Path;
use anstyle::{AnsiColor, Color, Style};
use anyhow::Result;
use clap::{crate_authors, Args, Command, FromArgMatches as _, Subcommand};
-use git2::{Oid, Repository};
use semver::Version;
#[derive(Subcommand)]
@@ -223,7 +219,6 @@ fn run() -> Result<()> {
Commands::Benchmark(benchmark_options) => benchmark::run(&benchmark_options)?,
Commands::BuildWasm(build_wasm_options) => build_wasm::run_wasm(&build_wasm_options)?,
Commands::BuildWasmStdlib => build_wasm::run_wasm_stdlib()?,
- Commands::BumpVersion(bump_options) => bump::run(bump_options)?,
Commands::CheckWasmExports(check_options) => check_wasm_exports::run(&check_options)?,
Commands::Clippy(clippy_options) => clippy::run(&clippy_options)?,
Commands::FetchEmscripten => fetch::run_emscripten()?,
@@ -235,10 +230,7 @@ fn run() -> Result<()> {
Commands::GenerateWasmExports => generate::run_wasm_exports()?,
Commands::Test(test_options) => test::run(&test_options)?,
Commands::TestWasm => test::run_wasm()?,
- Commands::UpgradeWasmtime(upgrade_wasmtime_options) => {
- upgrade_wasmtime::run(&upgrade_wasmtime_options)?;
- }
- Commands::UpgradeEmscripten => upgrade_emscripten::run()?,
+ _ => unreachable!(),
}
Ok(())
@@ -284,6 +276,7 @@ const fn get_styles() -> clap::builder::
.placeholder(Style::new().fg_color(Some(Color::Ansi(AnsiColor::White))))
}
+/*
pub fn create_commit(repo: &Repository, msg: &str, paths: &[&str]) -> Result<Oid> {
let mut index = repo.index()?;
for path in paths {
@@ -306,6 +299,7 @@ pub fn create_commit(repo: &Repository,
&[&parent_commit],
)?)
}
+*/
#[macro_export]
macro_rules! watch_wasm {