add sqlite3.h and sqlite3ext.h to rust bindings

This commit is contained in:
Alex Garcia 2024-07-12 09:41:54 -07:00
parent 4f6cf8bc7c
commit b001ba5083
2 changed files with 8 additions and 1 deletions

View file

@ -199,6 +199,7 @@ jobs:
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
- run: ./scripts/vendor.sh
- run: make sqlite-vec.h - run: make sqlite-vec.h
- run: make deps - run: make deps
working-directory: ./bindings/rust working-directory: ./bindings/rust

View file

@ -1,6 +1,6 @@
VERSION=$(shell cat ../../VERSION) 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 Cargo.toml: ../../VERSION Cargo.toml.tmpl
VERSION=$(VERSION) envsubst < 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 sqlite-vec.h: ../../sqlite-vec.h
cp $< $@ cp $< $@
sqlite3ext.h: ../../vendor/sqlite3ext.h
cp $< $@
sqlite3.h:
cp $< $@
.PHONY: deps .PHONY: deps