Skip to content

Commit

Permalink
update breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed Oct 7, 2024
1 parent 4f204a5 commit fbfc333
Show file tree
Hide file tree
Showing 23 changed files with 498 additions and 828 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ async fn connect_workers(ctx: &AppContext, queue: &Queue) -> Result<()>{
Ok(())
}

// in your app.rs, remove the `worker` module references.
// in your app.rs, replace the `worker` module references.
// REMOVE
worker::{AppWorker, Processor},
// REPLACE WITH
bgworker::{BackgroundWorker, Queue},

// in your workers change the signature, and add the `build` function

Expand All @@ -49,6 +51,14 @@ impl worker::AppWorker<DownloadWorkerArgs> for DownloadWorker {
}
```

Finally, update your `development.yaml` and `test.yaml` with a `kind`:

```yaml
queue:
kind: Redis # add this to the existing `queue` section
```
* **UPGRADED (BREAKING)**: `validator` crate was upgraded which require some small tweaks to work with the new API:

```rust
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "Apache-2.0"

[package]
name = "loco-rs"
version = "0.9.0"
version = "0.10.0"
description = "The one-person framework for Rust"
homepage = "https://loco.rs/"
documentation = "https://docs.rs/loco-rs"
Expand Down
2 changes: 1 addition & 1 deletion loco-extras/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mongodb = { version = "2.8.0", optional = true }

[dependencies.loco-rs]
path = "../"
version = "0.9.0"
version = "*"
default-features = true
features = ["with-db", "auth_jwt"]

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pub use self::errors::Error;

mod banner;
mod bgworker;
pub mod bgworker;
pub mod prelude;

#[cfg(feature = "with-db")]
Expand Down
Loading

0 comments on commit fbfc333

Please sign in to comment.