Skip to content

Commit

Permalink
Merge pull request #53 from jayvdb/fix-doctest
Browse files Browse the repository at this point in the history
fix: Fix compilation error in doctest
  • Loading branch information
geofmureithi authored Mar 24, 2023
2 parents 7880f06 + 4e5f593 commit 38c0927
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 15 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apalis"
version = "0.3.5"
version = "0.3.6"
authors = ["Geoffrey Mureithi <mureithinjuguna@gmail.com>"]
description = "Simple, extensible multithreaded background job processing for Rust"
repository = "https://github.com/geofmureithi/apalis"
Expand Down Expand Up @@ -54,26 +54,26 @@ docsrs = ["document-features"]


[dependencies.apalis-redis]
version = "0.3.5"
version = "0.3.6"
optional = true
default-features = false
path = "./packages/apalis-redis"

[dependencies.apalis-sql]
version = "0.3.5"
version = "0.3.6"
features = ["migrate"]
optional = true
default-features = false
path = "./packages/apalis-sql"

[dependencies.apalis-core]
version = "0.3.5"
version = "0.3.6"
optional = true
default-features = false
path = "./packages/apalis-core"

[dependencies.apalis-cron]
version = "0.3.5"
version = "0.3.6"
optional = true
default-features = false
path = "./packages/apalis-cron"
Expand All @@ -93,7 +93,7 @@ all-features = true
criterion = { version = "0.4", features = ["async_tokio", "html_reports"] }
serde = "1"
tokio = { version = "1", features = ["macros"] }
apalis-redis = { version = "0.3.5", path = "./packages/apalis-redis" }
apalis-redis = { version = "0.3.6", path = "./packages/apalis-redis" }
apalis-sql = { version = "0.3", path = "./packages/apalis-sql", features = ["sqlite"] }

[[bench]]
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Geoffrey Mureithi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
13 changes: 13 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Security Policy

## Supported Versions

| Version | Supported |
| ------- | ------------------ |
| 0.3 | :white_check_mark: |
| 0.2 | :x: |

## Reporting a Vulnerability

apalis is not yet version 1.x
If you find a vulnability please contact me mureithinjuguna[at]gmail.com
2 changes: 1 addition & 1 deletion packages/apalis-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apalis-core"
version = "0.3.5"
version = "0.3.6"
authors = ["Geoffrey Mureithi <mureithinjuguna@gmail.com>"]
edition = "2018"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions packages/apalis-cron/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apalis-cron"
version = "0.3.5"
version = "0.3.6"
edition = "2021"
authors = ["Geoffrey Mureithi <mureithinjuguna@gmail.com>"]
license = "MIT"
Expand All @@ -9,7 +9,7 @@ description = "A simple yet extensible library for cron-like job scheduling for
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
apalis-core = { path = "../../packages/apalis-core", version = "0.3.5" }
apalis-core = { path = "../../packages/apalis-core", version = "0.3.6" }
cron = "0.11.0"
futures = "0.3"
tower = { version = "0.4" }
Expand All @@ -19,7 +19,7 @@ async-stream = "0.3.3"

[dev-dependencies]
tokio = { version = "1", features = ["macros"] }
apalis-core = { path = "../../packages/apalis-core", version = "0.3.5", features=["extensions", "retry"] }
apalis-core = { path = "../../packages/apalis-core", version = "0.3.6", features=["extensions", "retry"] }
serde = { version = "1.0", features = ["derive"] }

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion packages/apalis-cron/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
//! use std::str::FromStr;
//! use serde::{Serialize,Deserialize};
//!
//! #[derive(Default)]
//! #[derive(Clone, Default)]
//! struct Reminder;
//!
//! impl Job for Reminder {
Expand Down
4 changes: 2 additions & 2 deletions packages/apalis-redis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apalis-redis"
version = "0.3.5"
version = "0.3.6"
authors = ["Geoffrey Mureithi <mureithinjuguna@gmail.com>"]
edition = "2018"
readme = "../../README.md"
Expand All @@ -11,7 +11,7 @@ description = "Redis Storage for Apalis: simple and reliable background processi
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
apalis-core = { path = "../../packages/apalis-core", version = "0.3.5", default-features = false }
apalis-core = { path = "../../packages/apalis-core", version = "0.3.6", default-features = false }
redis = { version = "0.21" , features = ["tokio-comp"] }
serde = "1"
log = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/apalis-sql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apalis-sql"
version = "0.3.5"
version = "0.3.6"
authors = ["Geoffrey Mureithi <mureithinjuguna@gmail.com>"]
edition = "2018"
readme = "../../README.md"
Expand All @@ -23,7 +23,7 @@ features = [ "runtime-tokio-rustls", "uuid" ]
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
apalis-core = { path = "../../packages/apalis-core", version = "0.3.5", features= ["storage"], default-features = false}
apalis-core = { path = "../../packages/apalis-core", version = "0.3.6", features= ["storage"], default-features = false}
chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] }
futures = "0.3"
async-stream = "0.3"
Expand Down

0 comments on commit 38c0927

Please sign in to comment.