From 3979a596650796a9fa3244ee653c6922430dfba5 Mon Sep 17 00:00:00 2001 From: KD Date: Fri, 14 Mar 2025 00:44:49 +0000 Subject: [PATCH] Added constants --- src/constants.rs | 4 ++++ src/lib.rs | 1 + 2 files changed, 5 insertions(+) create mode 100644 src/constants.rs diff --git a/src/constants.rs b/src/constants.rs new file mode 100644 index 0000000..f5e30b5 --- /dev/null +++ b/src/constants.rs @@ -0,0 +1,4 @@ +pub const DEFAULT_MUSIC_EXTENSION: &str = FLAC_EXTENSION; +pub const FLAC_EXTENSION: &str = ".flac"; +pub const WAV_EXTENSION: &str = ".wav"; +pub const MPTHREE_EXTENSION: &str = ".mp3"; diff --git a/src/lib.rs b/src/lib.rs index 3e0f797..425aff6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ pub mod access_level; +pub mod constants; pub mod login_result; pub mod song; pub mod token;