From 03c8d67b5eb3682390792b13801d6453408dee9b Mon Sep 17 00:00:00 2001 From: MrDulfin Date: Mon, 22 Jan 2024 14:06:13 -0500 Subject: [PATCH 1/2] s --- Cargo.toml | 1 + src/lib.rs | 2 ++ src/music_controller/connections.rs | 9 +++++++++ 3 files changed, 12 insertions(+) create mode 100644 src/music_controller/connections.rs diff --git a/Cargo.toml b/Cargo.toml index 70c70e1..7b4d63a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,3 +36,4 @@ thiserror = "1.0.56" font = "0.27.0" uuid = { version = "1.6.1", features = ["v4", "serde"]} serde_json = "1.0.111" +discord-presence = "0.5.18" \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 2c479ae..3119019 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,9 +10,11 @@ pub mod music_storage { pub mod music_controller{ pub mod controller; + pub mod connections; } pub mod music_player; +#[allow(clippy::module_inception)] pub mod config { pub mod config; pub mod other_settings; diff --git a/src/music_controller/connections.rs b/src/music_controller/connections.rs new file mode 100644 index 0000000..e383e1a --- /dev/null +++ b/src/music_controller/connections.rs @@ -0,0 +1,9 @@ +use std::{env, thread, time}; +use discord_presence::{Client, Event}; + +use super::controller::Controller; + + +impl Controller { + //more stuff goes here +} From fd82f3072caec5a496b70ece93804975d49337ad Mon Sep 17 00:00:00 2001 From: MrDulfin Date: Mon, 22 Jan 2024 14:07:04 -0500 Subject: [PATCH 2/2] removed rpc stuff --- Cargo.toml | 3 +-- src/music_controller/connections.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7b4d63a..9c8d51a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,5 +35,4 @@ m3u8-rs = "5.0.5" thiserror = "1.0.56" font = "0.27.0" uuid = { version = "1.6.1", features = ["v4", "serde"]} -serde_json = "1.0.111" -discord-presence = "0.5.18" \ No newline at end of file +serde_json = "1.0.111" \ No newline at end of file diff --git a/src/music_controller/connections.rs b/src/music_controller/connections.rs index e383e1a..86d8f29 100644 --- a/src/music_controller/connections.rs +++ b/src/music_controller/connections.rs @@ -1,5 +1,4 @@ use std::{env, thread, time}; -use discord_presence::{Client, Event}; use super::controller::Controller;