mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
fixup rust bindings
This commit is contained in:
parent
a6495e1e9a
commit
38e41c62eb
5 changed files with 36 additions and 14 deletions
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
|
@ -133,8 +133,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- run: make sqlite-vec.h
|
- run: make sqlite-vec.h
|
||||||
- run: cp sqlite-vec.c bindings/rust
|
- run: make deps
|
||||||
- run: cp sqlite-vec.h bindings/rust
|
working-directory: ./bindings/rust
|
||||||
- run: cargo publish --no-verify
|
- run: cargo publish --no-verify
|
||||||
working-directory: ./bindings/rust
|
working-directory: ./bindings/rust
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
1
bindings/rust/.gitignore
vendored
1
bindings/rust/.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
target/
|
target/
|
||||||
sqlite-vec.c
|
sqlite-vec.c
|
||||||
sqlite-vec.h
|
sqlite-vec.h
|
||||||
|
Cargo.toml
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "sqlite-vec"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
cc = "1.0"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
rusqlite = "0.31.0"
|
|
||||||
19
bindings/rust/Cargo.toml.tmpl
Normal file
19
bindings/rust/Cargo.toml.tmpl
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
[package]
|
||||||
|
name = "sqlite-vec"
|
||||||
|
version = "${VERSION}"
|
||||||
|
edition = "2021"
|
||||||
|
authors = ["Alex Garcia <alexsebastian.garcia@gmail.com>"]
|
||||||
|
description = "FFI bindings to the sqlite-vec SQLite extension"
|
||||||
|
homepage = "https://github.com/asg017/sqlite-vec"
|
||||||
|
repository = "https://github.com/asg017/sqlite-vec"
|
||||||
|
keywords = ["sqlite", "sqlite-extension"]
|
||||||
|
license = "MIT/Apache-2.0"
|
||||||
|
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
cc = "1.0"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
rusqlite = "0.31.0"
|
||||||
14
bindings/rust/Makefile
Normal file
14
bindings/rust/Makefile
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
VERSION=$(shell cat ../../VERSION)
|
||||||
|
|
||||||
|
deps: Cargo.toml sqlite-vec.c sqlite-vec.h
|
||||||
|
|
||||||
|
Cargo.toml: ../../VERSION Cargo.toml.tmpl
|
||||||
|
VERSION=$(VERSION) envsubst < Cargo.toml.tmpl > $@
|
||||||
|
|
||||||
|
sqlite-vec.c: ../../sqlite-vec.c
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
sqlite-vec.h: ../../sqlite-vec.h
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
.PHONY: deps
|
||||||
Loading…
Add table
Add a link
Reference in a new issue