Skip to content

Commit

Permalink
Fixed error with Diesel without with-deprecated feature - fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 30, 2023
1 parent 3567bc8 commit 2fdf4bf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.2 (unreleased)

- Fixed error with Diesel without `with-deprecated` feature

## 0.3.1 (2023-10-19)

- Added `as_slice` method
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sqlx = { version = ">= 0.5, < 0.8", default-features = false, features = ["postg
serde = { version = "1", features = ["derive"], optional = true }

[dev-dependencies]
diesel = { version = "2", features = ["32-column-tables"] }
diesel = { version = "2", default-features = false, features = ["32-column-tables"] }
sqlx = { version = "0", default-features = false, features = ["runtime-async-std-native-tls"] }
async-std = { version = "1", features = ["attributes"] }
serde_json = "1"
Expand Down
1 change: 1 addition & 0 deletions src/diesel_ext.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use diesel::deserialize::{self, FromSql};
use diesel::expression::{AsExpression, Expression};
use diesel::pg::{Pg, PgValue};
use diesel::query_builder::QueryId;
use diesel::serialize::{self, IsNull, Output, ToSql};
use diesel::sql_types::{Double, Nullable, SqlType};
use std::convert::TryFrom;
Expand Down
3 changes: 3 additions & 0 deletions src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ use std::convert::TryInto;
#[cfg(feature = "diesel")]
use crate::diesel_ext::VectorType;

#[cfg(feature = "diesel")]
use diesel::{deserialize::FromSqlRow, expression::AsExpression};

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

Expand Down

0 comments on commit 2fdf4bf

Please sign in to comment.