From b001ba5083ab544fe9e41baf2b0892ec838d1f2c Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Fri, 12 Jul 2024 09:41:54 -0700 Subject: [PATCH] add sqlite3.h and sqlite3ext.h to rust bindings --- .github/workflows/release.yaml | 1 + bindings/rust/Makefile | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 13fd0de..e488993 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -199,6 +199,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable + - run: ./scripts/vendor.sh - run: make sqlite-vec.h - run: make deps working-directory: ./bindings/rust diff --git a/bindings/rust/Makefile b/bindings/rust/Makefile index 6171353..cc2f0e7 100644 --- a/bindings/rust/Makefile +++ b/bindings/rust/Makefile @@ -1,6 +1,6 @@ VERSION=$(shell cat ../../VERSION) -deps: Cargo.toml sqlite-vec.c sqlite-vec.h +deps: Cargo.toml sqlite-vec.c sqlite-vec.h sqlite3ext.h sqlite3.h Cargo.toml: ../../VERSION Cargo.toml.tmpl VERSION=$(VERSION) envsubst < Cargo.toml.tmpl > $@ @@ -11,4 +11,10 @@ sqlite-vec.c: ../../sqlite-vec.c sqlite-vec.h: ../../sqlite-vec.h cp $< $@ +sqlite3ext.h: ../../vendor/sqlite3ext.h + cp $< $@ + +sqlite3.h: + cp $< $@ + .PHONY: deps