Skip to content

Commit

Permalink
Use types from the lighter-weight postgres-types
Browse files Browse the repository at this point in the history
  • Loading branch information
shadaj committed Apr 14, 2024
1 parent 3a75b3c commit 944290a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ doctest = false

[dependencies]
bytes = { version = "1", optional = true }
postgres = { version = "0.19", default-features = false, optional = true }
postgres-types = { version = "0.2", default-features = false, optional = true }
diesel = { version = "2", default-features = false, features = ["postgres"], optional = true }
sqlx = { version = ">= 0.5, < 0.8", default-features = false, features = ["postgres"], optional = true }
serde = { version = "1", features = ["derive"], optional = true }

[dev-dependencies]
postgres = { version = "0.19", default-features = false }
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"

[features]
postgres = ["dep:postgres", "dep:bytes"]
postgres = ["dep:postgres-types", "dep:bytes"]
2 changes: 1 addition & 1 deletion src/postgres_ext/vector.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bytes::{BufMut, BytesMut};
use postgres::types::{to_sql_checked, FromSql, IsNull, ToSql, Type};
use postgres_types::{to_sql_checked, FromSql, IsNull, ToSql, Type};
use std::convert::TryInto;
use std::error::Error;

Expand Down

0 comments on commit 944290a

Please sign in to comment.