feat: updated more dependencies
This commit is contained in:
parent
6b84f33d2e
commit
86f71f0fa4
3 changed files with 533 additions and 176 deletions
689
Cargo.lock
generated
689
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
16
Cargo.toml
16
Cargo.toml
|
@ -17,29 +17,29 @@ name = "update_minecraft"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# discord library
|
# discord library
|
||||||
serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "rustls_backend", "model", "cache"] }
|
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 api
|
||||||
wolves_oxidised = { git = "https://forgejo.skynet.ie/Skynet/wolves-oxidised.git", features = ["unstable"] }
|
wolves_oxidised = { git = "https://forgejo.skynet.ie/Skynet/wolves-oxidised.git", features = ["unstable"] }
|
||||||
# wolves_oxidised = { path = "../wolves-oxidised", features = ["unstable"] }
|
# wolves_oxidised = { path = "../wolves-oxidised", features = ["unstable"] }
|
||||||
|
|
||||||
# to make the http requests
|
# to make the http requests
|
||||||
surf = "2.3.2"
|
surf = "2.3"
|
||||||
|
|
||||||
dotenvy = "0.15.7"
|
dotenvy = "0.15"
|
||||||
|
|
||||||
# For sqlite
|
# 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"] }
|
serde_json = { version = "1.0", features = ["raw_value"] }
|
||||||
|
|
||||||
# create random strings
|
# create random strings
|
||||||
rand = "0.8.5"
|
rand = "0.9"
|
||||||
|
|
||||||
# fancy time stuff
|
# fancy time stuff
|
||||||
chrono = "0.4.26"
|
chrono = "0.4"
|
||||||
|
|
||||||
# for email
|
# for email
|
||||||
lettre = "0.10.4"
|
lettre = "0.11"
|
||||||
maud = "0.25.0"
|
maud = "0.27"
|
||||||
|
|
||||||
serde = "1.0"
|
serde = "1.0"
|
|
@ -2,7 +2,7 @@ pub mod common;
|
||||||
|
|
||||||
use chrono::{Datelike, SecondsFormat, Utc};
|
use chrono::{Datelike, SecondsFormat, Utc};
|
||||||
use dotenvy::dotenv;
|
use dotenvy::dotenv;
|
||||||
use rand::{distributions::Alphanumeric, thread_rng, Rng};
|
use rand::{distr::Alphanumeric, rng, Rng};
|
||||||
use serenity::all::CommandInteraction;
|
use serenity::all::CommandInteraction;
|
||||||
use serenity::client::Context;
|
use serenity::client::Context;
|
||||||
use serenity::model::id::{ChannelId, GuildId, RoleId};
|
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 {
|
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()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue