From e96f98a601c08dd3a5b826f5920ed13c5f41596a Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Thu, 15 Feb 2024 11:43:43 -0500 Subject: [PATCH] fix: remove rand and chrono re-export --- Cargo.toml | 1 + examples/http_client.rs | 2 +- examples/webhook.rs | 2 +- examples/websocket_client.rs | 2 +- relay_rpc/src/auth.rs | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8b29593..134428a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,6 +29,7 @@ tokio = { version = "1.22", features = ["full"] } url = "2.3" warp = { version = "0.3", default-features = false } serde_json = "1.0" +rand = "0.8.5" [[example]] name = "websocket_client" diff --git a/examples/http_client.rs b/examples/http_client.rs index 04d1823..32e2743 100644 --- a/examples/http_client.rs +++ b/examples/http_client.rs @@ -1,7 +1,7 @@ use { relay_client::{http::Client, ConnectionOptions}, relay_rpc::{ - auth::{ed25519_dalek::SigningKey, rand, AuthToken}, + auth::{ed25519_dalek::SigningKey, AuthToken}, domain::Topic, }, std::{sync::Arc, time::Duration}, diff --git a/examples/webhook.rs b/examples/webhook.rs index b6380a0..eba14f5 100644 --- a/examples/webhook.rs +++ b/examples/webhook.rs @@ -4,7 +4,7 @@ use { ConnectionOptions, }, relay_rpc::{ - auth::{ed25519_dalek::SigningKey, rand, AuthToken}, + auth::{ed25519_dalek::SigningKey, AuthToken}, domain::{DecodedClientId, Topic}, jwt::VerifyableClaims, rpc, diff --git a/examples/websocket_client.rs b/examples/websocket_client.rs index aea2b4e..562006b 100644 --- a/examples/websocket_client.rs +++ b/examples/websocket_client.rs @@ -5,7 +5,7 @@ use { ConnectionOptions, }, relay_rpc::{ - auth::{ed25519_dalek::SigningKey, rand, AuthToken}, + auth::{ed25519_dalek::SigningKey, AuthToken}, domain::Topic, }, std::{sync::Arc, time::Duration}, diff --git a/relay_rpc/src/auth.rs b/relay_rpc/src/auth.rs index 88a45d5..a1128a5 100644 --- a/relay_rpc/src/auth.rs +++ b/relay_rpc/src/auth.rs @@ -1,3 +1,4 @@ +pub use ed25519_dalek; use { crate::{ domain::DecodedClientId, @@ -8,7 +9,6 @@ use { serde::{Deserialize, Serialize}, std::{fmt::Display, time::Duration}, }; -pub use {chrono, ed25519_dalek, rand}; #[cfg(feature = "cacao")] pub mod cacao;