Skip to content

Commit

Permalink
Bump SQLx to 0.8 (#798)
Browse files Browse the repository at this point in the history
* Bump SQLx to 0.8

* Bump bigdecimal to 0.4

* Fix clippy warnings

* Fix clippy warnings

* fmt

* Fix

* Upgrade `pgvector` to 0.4
  • Loading branch information
billy1624 authored Aug 9, 2024
1 parent b83eaa9 commit cfa2789
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/diesel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo update --manifest-path sea-query-diesel/Cargo.toml --workspace -p bigdecimal:0.4.5 --precise 0.3.1
- run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-chrono,with-json,with-rust_decimal,with-bigdecimal,with-uuid,with-time,with-ipnetwork,with-mac_address,postgres-array,postgres-vector
- run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-chrono
- run: cargo build --manifest-path sea-query-diesel/Cargo.toml --workspace --features postgres,sqlite,mysql --features=with-json
Expand Down Expand Up @@ -158,6 +157,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo update --manifest-path examples/${{ matrix.example }}/Cargo.toml -p bigdecimal:0.4.5 --precise 0.3.1
- run: cargo build --manifest-path examples/${{ matrix.example }}/Cargo.toml
- run: cargo run --manifest-path examples/${{ matrix.example }}/Cargo.toml
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ serde_json = { version = "1", default-features = false, optional = true, feature
educe = { version = "=0.5.11", default-features = false, optional = true, features = ["Hash", "PartialEq", "Eq"] }
chrono = { version = "0.4.27", default-features = false, optional = true, features = ["clock"] }
postgres-types = { version = "0", default-features = false, optional = true }
pgvector = { version = "<0.4", default-features = false, optional = true }
pgvector = { version = "~0.4", default-features = false, optional = true }
rust_decimal = { version = "1", default-features = false, optional = true }
bigdecimal = { version = "0.3", default-features = false, optional = true }
bigdecimal = { version = "0.4", default-features = false, optional = true }
uuid = { version = "1", default-features = false, optional = true }
time = { version = "0.3.36", default-features = false, optional = true, features = ["macros", "formatting"] }
ipnetwork = { version = "0.20", default-features = false, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion examples/diesel_postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ uuid = { version = "1", features = ["serde", "v4"] }
ipnetwork = { version = "0.20" }
mac_address = { version = "1.1" }
rust_decimal = { version = "1" }
bigdecimal = { version = "0.3" }
bigdecimal = { version = "0.4" }
diesel = { version = "2.1.1", features = ["postgres"] }
sea-query = { path = "../.." }
sea-query-diesel = { path = "../../sea-query-diesel", features = [
Expand Down
4 changes: 2 additions & 2 deletions examples/sqlx_any/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ time = "0.3.36"
uuid = { version = "1", features = ["serde", "v4"] }
serde_json = "1"
rust_decimal = { version = "1" }
bigdecimal = { version = "0.3" }
bigdecimal = { version = "0.4" }
async-std = { version = "1.8", features = [ "attributes" ] }
sqlx = "0.7"
sqlx = "0.8"
sea-query = { path = "../../" }
sea-query-binder = { path = "../../sea-query-binder", features = [
"sqlx-postgres",
Expand Down
4 changes: 2 additions & 2 deletions examples/sqlx_mysql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ time = { version = "0.3.36", features = ["macros"] }
uuid = { version = "1", features = ["serde", "v4"] }
serde_json = "1"
rust_decimal = { version = "1" }
bigdecimal = { version = "0.3" }
bigdecimal = { version = "0.4" }
async-std = { version = "1.8", features = [ "attributes" ] }
sqlx = "0.7"
sqlx = "0.8"
sea-query = { path = "../../" }
sea-query-binder = { path = "../../sea-query-binder", features = [
"sqlx-mysql",
Expand Down
4 changes: 2 additions & 2 deletions examples/sqlx_postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ time = { version = "0.3.36", features = ["macros"] }
uuid = { version = "1", features = ["serde", "v4"] }
serde_json = "1"
rust_decimal = { version = "1" }
bigdecimal = { version = "0.3" }
bigdecimal = { version = "0.4" }
ipnetwork = { version = "0.20" }
mac_address = { version = "1.1" }
async-std = { version = "1.8", features = [ "attributes" ] }
sqlx = "0.7"
sqlx = "0.8"
sea-query = { path = "../../" }
sea-query-binder = { path = "../../sea-query-binder", features = [
"sqlx-postgres",
Expand Down
2 changes: 1 addition & 1 deletion examples/sqlx_sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ time = { version = "0.3.36", features = ["macros"] }
uuid = { version = "1", features = ["serde", "v4"] }
serde_json = "1"
async-std = { version = "1.8", features = [ "attributes" ] }
sqlx = "0.7"
sqlx = "0.8"
sea-query = { path = "../../" }
sea-query-binder = { path = "../../sea-query-binder", features = [
"sqlx-sqlite",
Expand Down
6 changes: 3 additions & 3 deletions sea-query-binder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ rust-version = "1.60"

[dependencies]
sea-query = { version = "0.31.0", path = "..", default-features = false, features = ["thread-safe"] }
sqlx = { version = "<0.7.5", default-features = false, optional = true }
sqlx = { version = "<0.8.1", default-features = false, optional = true }
serde_json = { version = "1", default-features = false, optional = true, features = ["std"] }
chrono = { version = "0.4", default-features = false, optional = true, features = ["clock"] }
rust_decimal = { version = "1", default-features = false, optional = true }
bigdecimal = { version = "0.3", default-features = false, optional = true }
bigdecimal = { version = "0.4", default-features = false, optional = true }
uuid = { version = "1", default-features = false, optional = true }
time = { version = "0.3.36", default-features = false, optional = true, features = ["macros", "formatting"] }
ipnetwork = { version = "0.20", default-features = false, optional = true }
mac_address = { version = "1.1", default-features = false, optional = true }
pgvector = { version = "<0.4", default-features = false, optional = true }
pgvector = { version = "~0.4", default-features = false, optional = true }

[features]
sqlx-mysql = ["sqlx/mysql"]
Expand Down
4 changes: 2 additions & 2 deletions sea-query-diesel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ sea-query = { version = "0.31.0", path = "..", default-features = false }
diesel = { version = "2.1.1", features = [
"i-implement-a-third-party-backend-and-opt-into-breaking-changes",
] }
bigdecimal = { version = "0.3", default-features = false, optional = true }
bigdecimal = { version = "0.4", default-features = false, optional = true }
rust_decimal = { version = "1", default-features = false, optional = true }
chrono = { version = "0.4", default-features = false, optional = true }
time = { version = "0.3.36", default-features = false, optional = true }
uuid = { version = "1", default-features = false, optional = true }
serde_json = { version = "1", default-features = false, optional = true }
ipnetwork = { version = "0.20", default-features = false, optional = true }
mac_address = { version = "1.1", default-features = false, optional = true }
pgvector = { version = "<0.4", default-features = false, optional = true }
pgvector = { version = "~0.4", default-features = false, optional = true }

[features]
default = []
Expand Down
4 changes: 2 additions & 2 deletions sea-query-postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ rust-version = "1.60"
[dependencies]
sea-query = { version = "0.31.0", path = "..", default-features = false }
postgres-types = { version = "0.2", default-features = false }
pgvector = { version = "<0.4", default-features = false, optional = true }
pgvector = { version = "~0.4", default-features = false, optional = true }
bytes = { version = "1", default-features = false }
rust_decimal = { version = "1", default-features = false, optional = true }
bigdecimal = { version = "0.3", default-features = false, optional = true }
bigdecimal = { version = "0.4", default-features = false, optional = true }
ipnetwork = { version = "0.20", default-features = false, optional = true }
mac_address = { version = "1.1", default-features = false, optional = true }
eui48 = { version = "1", default-features = false, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion sea-query-rbatis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rbs = { version = "4.3.1" }
serde_json = { version = "1", default-features = false, optional = true, features = ["std"] }
chrono = { version = "0.4", default-features = false, optional = true, features = [ "clock"] }
rust_decimal = { version = "1", default-features = false, optional = true }
bigdecimal = { version = "0.3", default-features = false, optional = true }
bigdecimal = { version = "0.4", default-features = false, optional = true }
uuid = { version = "1", default-features = false, optional = true }
time = { version = "0.3.36", default-features = false, optional = true, features = ["macros", "formatting"] }
ipnetwork = { version = "0.20", default-features = false, optional = true }
Expand Down

0 comments on commit cfa2789

Please sign in to comment.