File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1- ## 0.4.0 (unreleased )
1+ ## 0.4.0 (2024-07-28 )
22
33- Added support for SQLx 0.8
44- Dropped support for SQLx < 0.8
Original file line number Diff line number Diff line change 11[package ]
22name = " pgvector"
3- version = " 0.3.4 "
3+ version = " 0.4.0 "
44description = " pgvector support for Rust"
55repository = " https://github.com/pgvector/pgvector-rust"
66license = " MIT OR Apache-2.0"
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Or check out some examples:
2828Add this line to your application’s ` Cargo.toml ` under ` [dependencies] ` :
2929
3030``` toml
31- pgvector = { version = " 0.3 " , features = [" postgres" ] }
31+ pgvector = { version = " 0.4 " , features = [" postgres" ] }
3232```
3333
3434Enable the extension
@@ -84,9 +84,11 @@ let embedding: Option<Vector> = row.get(0);
8484Add this line to your application’s ` Cargo.toml ` under ` [dependencies] ` :
8585
8686``` toml
87- pgvector = { version = " 0.3 " , features = [" sqlx" ] }
87+ pgvector = { version = " 0.4 " , features = [" sqlx" ] }
8888```
8989
90+ For SQLx < 0.8, use ` version = "0.3" ` and [ this readme] ( https://github.com/pgvector/pgvector-rust/blob/v0.3.4/README.md ) .
91+
9092Enable the extension
9193
9294``` rust
@@ -141,7 +143,7 @@ let embedding: Vector = row.try_get("embedding")?;
141143Add this line to your application’s ` Cargo.toml ` under ` [dependencies] ` :
142144
143145``` toml
144- pgvector = { version = " 0.3 " , features = [" diesel" ] }
146+ pgvector = { version = " 0.4 " , features = [" diesel" ] }
145147```
146148
147149And update your application’s ` diesel.toml ` under ` [print_schema] ` :
You can’t perform that action at this time.
0 commit comments