From 0503e4ecbfa1cafdcad4da610ca88f5a4b23457a Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Thu, 5 Sep 2024 00:25:16 +0000 Subject: [PATCH] lib: Move more things to dev-dependencies --- lib/Cargo.toml | 8 ++++---- lib/examples/login_qr.rs | 2 -- lib/examples/login_steamguard.rs | 2 -- lib/src/connection.rs | 4 ++-- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 787e6cc..1279531 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -5,16 +5,12 @@ version.workspace = true [dependencies] async-tungstenite = { version = "0.27.0", features = ["tokio-rustls-native-certs"] } -base64 = "0.22.1" color-eyre.workspace = true -dialoguer = "0.11.0" flate2 = "1.0.33" futures = "0.3.30" -hex = "0.4.3" keyvalues-serde.workspace = true log.workspace = true protobuf.workspace = true -qrcode = "0.14.1" rand = "0.8.5" reqwest = { version = "0.12", features = ["rustls-tls-native-roots"], default-features = false} rsa = "0.9.6" @@ -23,4 +19,8 @@ tokio = { version = "1.39", features = ["rt", "rt-multi-thread", "macros", "time vapore-proto.path = "../proto" [dev-dependencies] +base64 = "0.22.1" +dialoguer = "0.11.0" env_logger.workspace = true +hex = "0.4.3" +qrcode = "0.14.1" diff --git a/lib/examples/login_qr.rs b/lib/examples/login_qr.rs index 4684ba0..96d91ff 100644 --- a/lib/examples/login_qr.rs +++ b/lib/examples/login_qr.rs @@ -19,8 +19,6 @@ pub async fn main() -> eyre::Result<()> { env_logger::init(); color_eyre::install()?; - log::info!("Starting vapored"); - let servers = vapore::connection::bootstrap_find_servers().await?; log::debug!("Found servers: {:?}", servers); diff --git a/lib/examples/login_steamguard.rs b/lib/examples/login_steamguard.rs index 07e5f63..cc4e4e5 100644 --- a/lib/examples/login_steamguard.rs +++ b/lib/examples/login_steamguard.rs @@ -27,8 +27,6 @@ pub async fn main() -> eyre::Result<()> { env_logger::init(); color_eyre::install()?; - log::info!("Starting vapored"); - let servers = vapore::connection::bootstrap_find_servers().await?; log::debug!("Found servers: {:?}", servers); diff --git a/lib/src/connection.rs b/lib/src/connection.rs index 36935a7..652b05f 100644 --- a/lib/src/connection.rs +++ b/lib/src/connection.rs @@ -28,7 +28,7 @@ use crate::message::{CMProtoBufMessage, CMRawProtoBufMessage}; const CHANNEL_CAPACITY: usize = 16; #[derive(Debug, Deserialize)] -struct CMServerEntry<'a> { +pub struct CMServerEntry<'a> { endpoint: &'a str, legacy_endpoint: &'a str, #[serde(rename = "type")] @@ -40,7 +40,7 @@ struct CMServerEntry<'a> { } #[derive(Debug, Deserialize)] -struct GetCMListForConnectResponse<'a> { +pub struct GetCMListForConnectResponse<'a> { serverlist: BTreeMap>, success: u32, message: &'a str,