Skip to content

Commit 20984ed

Browse files
committed
Version bump to 0.4.0 [skip ci]
1 parent 117fb66 commit 20984ed

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgvector"
3-
version = "0.3.4"
3+
version = "0.4.0"
44
description = "pgvector support for Rust"
55
repository = "https://github.com/pgvector/pgvector-rust"
66
license = "MIT OR Apache-2.0"

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Or check out some examples:
2828
Add 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

3434
Enable the extension
@@ -84,9 +84,11 @@ let embedding: Option<Vector> = row.get(0);
8484
Add 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+
9092
Enable the extension
9193

9294
```rust
@@ -141,7 +143,7 @@ let embedding: Vector = row.try_get("embedding")?;
141143
Add 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

147149
And update your application’s `diesel.toml` under `[print_schema]`:

0 commit comments

Comments
 (0)