feat: updated more dependencies

This commit is contained in:
silver 2025-02-19 00:26:54 +00:00
parent 6b84f33d2e
commit 86f71f0fa4
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
3 changed files with 533 additions and 176 deletions

689
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -17,29 +17,29 @@ name = "update_minecraft"
[dependencies]
# discord library
serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "rustls_backend", "model", "cache"] }
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "full"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "full"] }
# wolves api
wolves_oxidised = { git = "https://forgejo.skynet.ie/Skynet/wolves-oxidised.git", features = ["unstable"] }
# wolves_oxidised = { path = "../wolves-oxidised", features = ["unstable"] }
# to make the http requests
surf = "2.3.2"
surf = "2.3"
dotenvy = "0.15.7"
dotenvy = "0.15"
# For sqlite
sqlx = { version = "0.7.1", features = [ "runtime-tokio", "sqlite", "migrate" ] }
sqlx = { version = "0.8", features = [ "runtime-tokio", "sqlite", "migrate" ] }
serde_json = { version = "1.0", features = ["raw_value"] }
# create random strings
rand = "0.8.5"
rand = "0.9"
# fancy time stuff
chrono = "0.4.26"
chrono = "0.4"
# for email
lettre = "0.10.4"
maud = "0.25.0"
lettre = "0.11"
maud = "0.27"
serde = "1.0"

View file

@ -2,7 +2,7 @@ pub mod common;
use chrono::{Datelike, SecondsFormat, Utc};
use dotenvy::dotenv;
use rand::{distributions::Alphanumeric, thread_rng, Rng};
use rand::{distr::Alphanumeric, rng, Rng};
use serenity::all::CommandInteraction;
use serenity::client::Context;
use serenity::model::id::{ChannelId, GuildId, RoleId};
@ -125,7 +125,7 @@ pub fn get_now_iso(short: bool) -> String {
}
pub fn random_string(len: usize) -> String {
thread_rng().sample_iter(&Alphanumeric).take(len).map(char::from).collect()
rng().sample_iter(&Alphanumeric).take(len).map(char::from).collect()
}
/**