Update crates (#111)
* update `diesel-derive-enum` from `2.0.0-rc.0` to `2.0.1` * add CHANGELOG entry
This commit is contained in:
parent
1eaba057bc
commit
a9c4faa338
5 changed files with 19 additions and 12 deletions
|
@ -1,5 +1,13 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.10.2 (2023-02-23)
|
||||||
|
|
||||||
|
### Improved
|
||||||
|
|
||||||
|
- update `diesel-derive-enum` from `2.0.0-rc.0` to `2.0.1` - [#111](https://github.com/ayrat555/fang/pull/111)
|
||||||
|
- use `dotenvy` instead of `dotenv` - [#111](https://github.com/ayrat555/fang/pull/111)
|
||||||
|
- update `tokio` from `1.20` to `1.25` - [#111](https://github.com/ayrat555/fang/pull/111)
|
||||||
|
|
||||||
## 0.10.1 (2023-02-03)
|
## 0.10.1 (2023-02-03)
|
||||||
|
|
||||||
### Improved
|
### Improved
|
||||||
|
|
17
Cargo.toml
17
Cargo.toml
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "fang"
|
name = "fang"
|
||||||
version = "0.10.1"
|
version = "0.10.2"
|
||||||
authors = ["Ayrat Badykov <ayratin555@gmail.com>" , "Pepe Márquez <pepe.marquezromero@gmail.com>"]
|
authors = ["Ayrat Badykov <ayratin555@gmail.com>" , "Pepe Márquez <pepe.marquezromero@gmail.com>"]
|
||||||
description = "Background job processing library for Rust"
|
description = "Background job processing library for Rust"
|
||||||
repository = "https://github.com/ayrat555/fang"
|
repository = "https://github.com/ayrat555/fang"
|
||||||
|
@ -16,7 +16,7 @@ doctest = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["blocking", "asynk"]
|
default = ["blocking", "asynk"]
|
||||||
blocking = ["diesel", "diesel-derive-enum", "dotenv"]
|
blocking = ["diesel", "diesel-derive-enum", "dotenvy"]
|
||||||
asynk = ["bb8-postgres", "postgres-types", "tokio", "async-trait", "async-recursion"]
|
asynk = ["bb8-postgres", "postgres-types", "tokio", "async-trait", "async-recursion"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -24,9 +24,9 @@ cron = "0.12"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
serde = "1"
|
serde = "1.0"
|
||||||
serde_derive = "1.0.141"
|
serde_derive = "1.0"
|
||||||
serde_json = "1"
|
serde_json = "1.0"
|
||||||
sha2 = "0.10"
|
sha2 = "0.10"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
typed-builder = "0.12"
|
typed-builder = "0.12"
|
||||||
|
@ -39,11 +39,11 @@ features = ["postgres", "serde_json", "chrono", "uuid", "r2d2"]
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[dependencies.diesel-derive-enum]
|
[dependencies.diesel-derive-enum]
|
||||||
version = "2.0.0-rc.0"
|
version = "2.0.1"
|
||||||
features = ["postgres"]
|
features = ["postgres"]
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[dependencies.dotenv]
|
[dependencies.dotenvy]
|
||||||
version = "0.15"
|
version = "0.15"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ features = ["derive"]
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[dependencies.tokio]
|
[dependencies.tokio]
|
||||||
version = "1.20"
|
version = "1.25"
|
||||||
features = ["rt", "time", "macros"]
|
features = ["rt", "time", "macros"]
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
|
@ -66,7 +66,6 @@ optional = true
|
||||||
version = "0.1"
|
version = "0.1"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
|
|
||||||
[dependencies.async-recursion]
|
[dependencies.async-recursion]
|
||||||
version = "1"
|
version = "1"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use diesel::r2d2;
|
use diesel::r2d2;
|
||||||
use dotenv::dotenv;
|
use dotenvy::dotenv;
|
||||||
use fang::PgConnection;
|
use fang::PgConnection;
|
||||||
use fang::Queue;
|
use fang::Queue;
|
||||||
use fang::Queueable;
|
use fang::Queueable;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/// Possible states of the task
|
/// Possible states of the task
|
||||||
#[derive(diesel_derive_enum::DbEnum, Debug, Eq, PartialEq, Clone)]
|
#[derive(diesel_derive_enum::DbEnum, Debug, Eq, PartialEq, Clone)]
|
||||||
#[DieselTypePath = "crate::schema::sql_types::FangTaskState"]
|
#[ExistingTypePath = "crate::schema::sql_types::FangTaskState"]
|
||||||
pub enum FangTaskState {
|
pub enum FangTaskState {
|
||||||
/// The task is ready to be executed
|
/// The task is ready to be executed
|
||||||
New,
|
New,
|
||||||
|
|
|
@ -22,7 +22,7 @@ use typed_builder::TypedBuilder;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
use dotenv::dotenv;
|
use dotenvy::dotenv;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue