aboutsummaryrefslogtreecommitdiff
path: root/azalea-auth
diff options
context:
space:
mode:
authorShayne Hartford <shaybox@shaybox.com>2024-11-23 03:29:30 -0500
committerGitHub <noreply@github.com>2024-11-23 02:29:30 -0600
commitdfdc3144b61b6750ad62fb493b7c00c6c820c90b (patch)
tree0cca5bcea62b3562152944b278c494401531d4d7 /azalea-auth
parente443c5d76e706132ab554e97513d2b159f4ab0a1 (diff)
downloadazalea-drasl-dfdc3144b61b6750ad62fb493b7c00c6c820c90b.tar.xz
Update and merge the dependencies (#187)
* Add rust rover to .gitignore * Fold dependency feature lists * Sort dependencies alphabetically * Update dependencies * Upgrade dependencies * Comment out unused dependencies * Nightly is broken right now :) * Fix conflict with derive_more * cargo autoinherit to merge dependencies * Fix clippy lints
Diffstat (limited to 'azalea-auth')
-rw-r--r--azalea-auth/Cargo.toml33
-rwxr-xr-xazalea-auth/src/auth.rs2
2 files changed, 16 insertions, 19 deletions
diff --git a/azalea-auth/Cargo.toml b/azalea-auth/Cargo.toml
index dce850bf..7eb38c19 100644
--- a/azalea-auth/Cargo.toml
+++ b/azalea-auth/Cargo.toml
@@ -11,23 +11,20 @@ version = "0.10.3+mc1.21.1"
[dependencies]
azalea-buf = { path = "../azalea-buf", version = "0.10.0" }
azalea-crypto = { path = "../azalea-crypto", version = "0.10.0" }
-base64 = "0.22.1"
-chrono = { version = "0.4.38", default-features = false, features = ["serde"] }
-tracing = "0.1.40"
-num-bigint = "0.4.6"
-once_cell = "1.19.0"
-reqwest = { version = "0.12.5", default-features = false, features = [
- "json",
- "rustls-tls",
-] }
-rsa = "0.9.6"
-serde = { version = "1.0.203", features = ["derive"] }
-serde_json = "1.0.120"
-thiserror = "1.0.61"
-tokio = { version = "1.38.0", features = ["fs"] }
-uuid = { version = "1.9.1", features = ["serde", "v3"] }
-md-5 = "0.10.6"
+base64 = { workspace = true }
+chrono = { workspace = true, features = ["serde"] }
+md-5 = { workspace = true }
+#num-bigint = { workspace = true }
+once_cell = { workspace = true }
+reqwest = { workspace = true, features = ["json", "rustls-tls"] }
+rsa = { workspace = true }
+serde = { workspace = true, features = ["derive"] }
+serde_json = { workspace = true }
+thiserror = { workspace = true }
+tokio = { workspace = true, features = ["fs"] }
+tracing = { workspace = true }
+uuid = { workspace = true, features = ["serde", "v3"] }
[dev-dependencies]
-env_logger = "0.11.3"
-tokio = { version = "1.38.0", features = ["full"] }
+env_logger = { workspace = true }
+tokio = { workspace = true, features = ["full"] }
diff --git a/azalea-auth/src/auth.rs b/azalea-auth/src/auth.rs
index e70be27d..55d7d36a 100755
--- a/azalea-auth/src/auth.rs
+++ b/azalea-auth/src/auth.rs
@@ -68,7 +68,7 @@ pub enum AuthError {
/// If you want to use your own code to cache or show the auth code to the user
/// in a different way, use [`get_ms_link_code`], [`get_ms_auth_token`],
/// [`get_minecraft_token`] and [`get_profile`] instead.
-pub async fn auth<'a>(email: &str, opts: AuthOpts<'a>) -> Result<AuthResult, AuthError> {
+pub async fn auth(email: &str, opts: AuthOpts<'_>) -> Result<AuthResult, AuthError> {
let cached_account = if let Some(cache_file) = &opts.cache_file {
cache::get_account_in_cache(cache_file, email).await
} else {