Skip to content

Commit

Permalink
fix(deps): update rust crate sqlx to 0.8.0 (#380)
Browse files Browse the repository at this point in the history
* chore: fix typos (#346)

* chore: Add repository to metadata (#345)

* fix(deps): update rust crate sqlx to 0.8.0

* fix: sqlite example

---------

Co-authored-by: John Vandenberg <jayvdb@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: geofmureithi <mureithinjuguna@gmail.com>
Co-authored-by: Geoffrey Mureithi <95377562+geofmureithi@users.noreply.github.com>
  • Loading branch information
4 people authored Jul 25, 2024
1 parent be1674f commit b790332
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
[workspace.package]
edition = "2021"
repository = "https://github.com/geofmureithi/apalis"

[package]
name = "apalis"
version = "0.6.0-rc.4"
authors = ["Geoffrey Mureithi <mureithinjuguna@gmail.com>"]
description = "Simple, extensible multithreaded background job processing for Rust"
repository = "https://github.com/geofmureithi/apalis"
edition.workspace = true
repository.workspace = true
documentation = "https://docs.rs/apalis"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["job", "task", "scheduler", "worker", "cron"]
categories = ["database"]
edition = "2021"

[lib]
bench = false
Expand Down Expand Up @@ -85,7 +89,7 @@ redis = { version = "0.25.3", default-features = false, features = [
] }

[dev-dependencies.sqlx]
version = "0.7.4"
version = "0.8.0"
default-features = false
features = ["chrono", "mysql", "sqlite", "postgres"]

Expand Down
2 changes: 1 addition & 1 deletion examples/sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ default-features = false
version = "0.1"

[dependencies.sqlx]
version = "0.7.0"
version = "0.8"
default-features = false
features = ["sqlite"]
3 changes: 2 additions & 1 deletion packages/apalis-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name = "apalis-core"
version = "0.6.0-rc.4"
authors = ["Njuguna Mureithi <mureithinjuguna@gmail.com>"]
edition = "2021"
edition.workspace = true
repository.workspace = true
license = "MIT"
description = "Core for apalis: simple, extensible multithreaded background processing for Rust"
categories = ["concurrency"]
Expand Down
2 changes: 1 addition & 1 deletion packages/apalis-core/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl Extensions {
self.map.as_ref().map_or(true, |map| map.is_empty())
}

/// Get the numer of extensions available.
/// Get the number of extensions available.
///
/// # Example
///
Expand Down
3 changes: 2 additions & 1 deletion packages/apalis-cron/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "apalis-cron"
version = "0.6.0-rc.4"
edition = "2021"
edition.workspace = true
repository.workspace = true
authors = ["Njuguna Mureithi <mureithinjuguna@gmail.com>"]
license = "MIT"
description = "A simple yet extensible library for cron-like job scheduling for rust."
Expand Down
3 changes: 2 additions & 1 deletion packages/apalis-redis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name = "apalis-redis"
version = "0.6.0-rc.4"
authors = ["Njuguna Mureithi <mureithinjuguna@gmail.com>"]
edition = "2021"
edition.workspace = true
repository.workspace = true
readme = "../../README.md"

license = "MIT"
Expand Down
5 changes: 3 additions & 2 deletions packages/apalis-sql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name = "apalis-sql"
version = "0.6.0-rc.4"
authors = ["Njuguna Mureithi <mureithinjuguna@gmail.com>"]
edition = "2021"
edition.workspace = true
repository.workspace = true
readme = "../../README.md"

license = "MIT"
Expand All @@ -18,7 +19,7 @@ async-std-comp = ["async-std", "sqlx/runtime-async-std-rustls"]
tokio-comp = ["tokio", "sqlx/runtime-tokio-rustls"]

[dependencies.sqlx]
version = "0.7.4"
version = "0.8.0"
default-features = false
features = ["chrono"]

Expand Down
2 changes: 1 addition & 1 deletion packages/apalis-sql/src/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ impl<T> SqliteStorage<T> {
tx.commit().await?;
Ok(())
}

/// Add jobs that failed back to the queue if there are still remaining attemps
pub async fn reenqueue_failed(&mut self) -> Result<(), sqlx::Error> {
let job_type = self.config.namespace.clone();
Expand Down

0 comments on commit b790332

Please sign in to comment.