From e3bbc23acaa778199071f81ef04c967f9b1fb741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Torres=20Gonz=C3=A1lez?= Date: Thu, 16 Jan 2025 14:47:26 +0100 Subject: [PATCH] Some minor dependencies updated [GH-09] --- Cargo.toml | 10 +++++----- src/configuration.rs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 05f2498..e64bad3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,9 +6,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -config = { version = "0.14", features = ["yaml"] } -secrecy = { version = "0.8", features = ["serde"] } -serde = { version = "1.0.200", features = ["serde_derive"] } +config = { version = "0.15.6", features = ["yaml"] } +secrecy = { version = "0.10.3", features = ["serde"] } +serde = { version = "1.0.217", features = ["serde_derive"] } teloxide = { version = "0.12.2", features = ["macros", "ctrlc_handler"] } tokio = {version = "1.8", features = ["rt-multi-thread", "macros"]} serde_derive = "1.0" @@ -16,8 +16,8 @@ tracing = { version = "0.1", features = ["log"] } tracing-subscriber = "0.3.0" pretty_assertions = "1.4.0" rstest = "0.24.0" -toml = "0.8.11" +toml = "0.8.19" scraper = "0.18.1" date-rs = "0.1.2" reqwest = { version = "0.12.4", features = ["json"] } -thiserror = "1.0.61" +thiserror = "2.0.11" diff --git a/src/configuration.rs b/src/configuration.rs index 61de1eb..7efe481 100644 --- a/src/configuration.rs +++ b/src/configuration.rs @@ -25,7 +25,7 @@ //! are meant to be used within this module shall use the prefix _SHORTBOT_. use config::{Config, ConfigError, Environment, File}; -use secrecy::Secret; +use secrecy::SecretString; use serde_derive::Deserialize; /// Name of the directory in which configuration files will be stored. @@ -52,7 +52,7 @@ pub struct Settings { #[derive(Debug, Deserialize)] #[allow(unused)] pub struct ApplicationSettings { - pub api_token: Secret, + pub api_token: SecretString, } impl Settings {