From 3bb45022d9d4c9883f0b452ec02824594e680f0c Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Fri, 1 Jul 2022 09:03:27 +0300 Subject: [PATCH] update `typetag` (#19) * update `typetag` typetage now requires rust 1.62 * stable rust * disable extra-unused-lifetimes the warning originates from diesel macro * fix warning name --- .github/workflows/rust.yml | 2 +- CHANGELOG.md | 4 ++++ Cargo.toml | 5 +++-- README.md | 4 +++- src/lib.rs | 1 + 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 85399cb..4d200f4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -84,7 +84,7 @@ jobs: override: true profile: minimal target: x86_64-unknown-linux-gnu - toolchain: nightly + toolchain: stable - name: Build release uses: actions-rs/cargo@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index c08a739..d35660a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.6.0 (2022-07-01) + +- Rust 1.62 is required for `typetag` + ## 0.5.0 (2021-12-05) - Add graceful shutdown - [#14](https://github.com/ayrat555/fang/pull/14) diff --git a/Cargo.toml b/Cargo.toml index 43bc7e0..0e57e15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,13 @@ [package] name = "fang" -version = "0.5.0" +version = "0.6.0" authors = ["Ayrat Badykov "] description = "Background job processing library for Rust" repository = "https://github.com/ayrat555/fang" edition = "2018" license = "MIT" readme = "README.md" +rust-version = "1.62" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -17,7 +18,7 @@ dotenv = "0.15" uuid = { version = "0.8", features = ["v4"] } chrono = "0.4" serde_json = "1" -typetag = "0.1" +typetag = "0.2" log = "0.4" serde = { version = "1", features = ["derive"] } thiserror = "1.0" diff --git a/README.md b/README.md index 842d4e5..e836446 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,12 @@ Background job processing library for Rust. It uses Postgres DB as a task queue. ```toml [dependencies] -fang = "0.5" +fang = "0.6" serde = { version = "1.0", features = ["derive"] } ``` +*Supports rustc 1.62+* + 2. Create `fang_tasks` table in the Postgres database. The migration can be found in [the migrations directory](https://github.com/ayrat555/fang/blob/master/migrations/2021-06-05-112912_create_fang_tasks/up.sql). ## Usage diff --git a/src/lib.rs b/src/lib.rs index 1ac552d..34daa00 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::nonstandard_macro_braces)] +#![allow(clippy::extra_unused_lifetimes)] #[macro_use] extern crate diesel;