From eee25f5f002b4c7a77267f80bab086946912a0fa Mon Sep 17 00:00:00 2001 From: Luc Schrijvers Date: Sun, 8 Mar 2026 10:13:27 +0100 Subject: Reset rust version requirement diff --git a/Cargo.toml b/Cargo.toml index 1ae5b95..9ab33fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ homepage = "https://tree-sitter.github.io/tree-sitter" keywords = [ "incremental", "parsing" ] license = "MIT" repository = "https://github.com/tree-sitter/tree-sitter" -rust-version = "1.90" +rust-version = "1.89" version = "0.27.0" [workspace.lints.clippy] diff --git a/crates/language/Cargo.toml b/crates/language/Cargo.toml index 0e1cb8a..2d1456f 100644 --- a/crates/language/Cargo.toml +++ b/crates/language/Cargo.toml @@ -4,7 +4,7 @@ description = "The tree-sitter Language type, used by the library and b version = "0.1.8" authors.workspace = true edition.workspace = true -rust-version = "1.90" +rust-version = "1.89" readme = "README.md" homepage.workspace = true repository.workspace = true diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 3715a38..fa7e358 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -4,7 +4,7 @@ version.workspace = true description = "Rust bindings to the Tree-sitter parsing library" authors.workspace = true edition.workspace = true -rust-version = "1.90" +rust-version = "1.89" readme = "binding_rust/README.md" homepage.workspace = true repository.workspace = true -- 2.52.0 From 68b1adf6063e60c9b0bc0a35e3c2b9ee822a1f4f Mon Sep 17 00:00:00 2001 From: Luc Schrijvers Date: Sun, 8 Mar 2026 19:32:21 +0100 Subject: don't install static library https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/tree-sitter/files/tree-sitter-0.22.2-no-static.patch diff --git a/Makefile b/Makefile index 13f33e1..e0fceba 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ ifneq ($(filter $(shell uname),FreeBSD NetBSD DragonFly),) endif endif -all: libtree-sitter.a libtree-sitter.$(SOEXT) tree-sitter.pc +all: libtree-sitter.$(SOEXT) tree-sitter.pc libtree-sitter.a: $(OBJ) $(AR) $(ARFLAGS) $@ $^ @@ -86,7 +86,6 @@ install: all install -d '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter '$(DESTDIR)$(PCLIBDIR)' '$(DESTDIR)$(LIBDIR)' install -m644 lib/include/tree_sitter/api.h '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter/api.h install -m644 tree-sitter.pc '$(DESTDIR)$(PCLIBDIR)'/tree-sitter.pc - install -m644 libtree-sitter.a '$(DESTDIR)$(LIBDIR)'/libtree-sitter.a ifneq ($(findstring mingw32,$(MACHINE)),) install -d '$(DESTDIR)$(BINDIR)' install -m755 libtree-sitter.dll '$(DESTDIR)$(BINDIR)'/libtree-sitter.dll -- 2.52.0