diff --git a/Cargo.toml b/Cargo.toml index dd038ac..d1b5d85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,11 +9,12 @@ homepage = "https://github.com/kacy/supabase-rust" license = "MIT" [dev-dependencies] -rand = "0.8" +rand = "0.9" [dependencies] -jsonwebtoken = "8.3.0" -reqwest = { version = "0.11", features = ["json"] } +jsonwebtoken = "9.3" +reqwest = { version = "0.12", features = ["json"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" +time = "0.3.37" tokio = { version = "1", features = ["full"] } diff --git a/src/auth.rs b/src/auth.rs index d90a4e1..b1d6ff9 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -226,12 +226,12 @@ mod tests { #[tokio::test] async fn test_signup_email_password() { - use rand::distributions::Alphanumeric; - use rand::{thread_rng, Rng}; + use rand::distr::Alphanumeric; + use rand::{rng, Rng}; let client = client(); - let rand_string: String = thread_rng() + let rand_string: String = rng() .sample_iter(&Alphanumeric) .take(20) .map(char::from) diff --git a/src/db.rs b/src/db.rs index ba326f6..a9b50fc 100644 --- a/src/db.rs +++ b/src/db.rs @@ -249,7 +249,7 @@ impl Supabase { /// // Delete /// client.from("users").delete().eq("id", "123").execute().await?; /// ``` - pub fn from(&self, table: impl Into) -> QueryBuilder { + pub fn from(&self, table: impl Into) -> QueryBuilder<'_> { QueryBuilder::new(self, table) } }