aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2026-05-26 16:54:47 +0200
committersalmonik <raisersoft@proton.me>2026-05-26 16:54:47 +0200
commit337a0ec8a55692f44031b00391a48a7b4b8c71b6 (patch)
tree00268fe1bf2a5b167c94f77462808a557b64a91b /src
parentno need to ship completions anymore! (diff)
downloadrsplayer-337a0ec8a55692f44031b00391a48a7b4b8c71b6.tar.gz
rsplayer-337a0ec8a55692f44031b00391a48a7b4b8c71b6.zip
add licensing
Diffstat (limited to 'src')
-rw-r--r--src/audio.rs7
-rw-r--r--src/cli.rs7
-rw-r--r--src/config.rs7
-rw-r--r--src/daemon.rs7
-rw-r--r--src/database.rs9
-rw-r--r--src/lib.rs7
-rw-r--r--src/main.rs7
-rw-r--r--src/notification.rs7
-rw-r--r--src/playback.rs7
-rw-r--r--src/queue.rs7
-rw-r--r--src/scrobbler.rs7
11 files changed, 78 insertions, 1 deletions
diff --git a/src/audio.rs b/src/audio.rs
index 62d13ff..e3d88bc 100644
--- a/src/audio.rs
+++ b/src/audio.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1use crate::notification; 8use crate::notification;
2use std::path::PathBuf; 9use std::path::PathBuf;
3use std::sync::atomic::{AtomicBool, Ordering}; 10use std::sync::atomic::{AtomicBool, Ordering};
diff --git a/src/cli.rs b/src/cli.rs
index 4590f57..05cd61f 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1use crate::config::Config; 8use crate::config::Config;
2use crate::database::Database; 9use crate::database::Database;
3use clap::{Command, CommandFactory, Parser, Subcommand}; 10use clap::{Command, CommandFactory, Parser, Subcommand};
diff --git a/src/config.rs b/src/config.rs
index 63b0164..67cb366 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1use directories::ProjectDirs; 8use directories::ProjectDirs;
2use serde::{Deserialize, Serialize}; 9use serde::{Deserialize, Serialize};
3use std::fs; 10use std::fs;
diff --git a/src/daemon.rs b/src/daemon.rs
index 48330ae..63510ea 100644
--- a/src/daemon.rs
+++ b/src/daemon.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1use crate::audio::AudioEngine; 8use crate::audio::AudioEngine;
2use crate::config::Config; 9use crate::config::Config;
3use crate::notification; 10use crate::notification;
diff --git a/src/database.rs b/src/database.rs
index b7b8e88..cd839b1 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1use directories::ProjectDirs; 8use directories::ProjectDirs;
2use rusqlite::{Connection, Result as SqlResult}; 9use rusqlite::{Connection, Result as SqlResult};
3use std::fs; 10use std::fs;
@@ -43,7 +50,7 @@ impl Database {
43 rusqlite::Error::InvalidPath("Failed to get project directories".into()) 50 rusqlite::Error::InvalidPath("Failed to get project directories".into())
44 })?; 51 })?;
45 52
46 let data_dir = if let Ok(xdg) = std::env::var("XDG_CONFIG_HOME") { 53 let data_dir = if let Ok(xdg) = std::env::var("XDG_DATA_HOME") {
47 PathBuf::from(xdg).join("rsplayer") 54 PathBuf::from(xdg).join("rsplayer")
48 } else { 55 } else {
49 proj_dirs.data_dir().to_path_buf() 56 proj_dirs.data_dir().to_path_buf()
diff --git a/src/lib.rs b/src/lib.rs
index 4cdbb9b..cc1f70a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1#[inline(always)] 8#[inline(always)]
2pub fn debug_eprintln(args: core::fmt::Arguments<'_>) { 9pub fn debug_eprintln(args: core::fmt::Arguments<'_>) {
3 if cfg!(debug_assertions) { 10 if cfg!(debug_assertions) {
diff --git a/src/main.rs b/src/main.rs
index fe450dd..d472b2d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1mod audio; 8mod audio;
2mod cli; 9mod cli;
3mod config; 10mod config;
diff --git a/src/notification.rs b/src/notification.rs
index 2c8d80f..b2d2b56 100644
--- a/src/notification.rs
+++ b/src/notification.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1use crate::queue::Track; 8use crate::queue::Track;
2 9
3pub fn notify_track(track: &Track, format: Option<&str>) { 10pub fn notify_track(track: &Track, format: Option<&str>) {
diff --git a/src/playback.rs b/src/playback.rs
index f16bf8f..1db91c5 100644
--- a/src/playback.rs
+++ b/src/playback.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1use std::path::PathBuf; 8use std::path::PathBuf;
2 9
3#[derive(Debug, Clone, PartialEq)] 10#[derive(Debug, Clone, PartialEq)]
diff --git a/src/queue.rs b/src/queue.rs
index 9d09fec..fc30c86 100644
--- a/src/queue.rs
+++ b/src/queue.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1use rand::seq::SliceRandom; 8use rand::seq::SliceRandom;
2use std::path::{Path, PathBuf}; 9use std::path::{Path, PathBuf};
3 10
diff --git a/src/scrobbler.rs b/src/scrobbler.rs
index 93cb3c2..e133669 100644
--- a/src/scrobbler.rs
+++ b/src/scrobbler.rs
@@ -1,3 +1,10 @@
1/*
2 * This file is a part of RSPlayer
3 * Licensed under the GPL-3.0 License
4 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
5 * https://codeberg.org/salmonik/RSPlayer
6*/
7
1use md5::{Digest, Md5}; 8use md5::{Digest, Md5};
2use reqwest::blocking::Client; 9use reqwest::blocking::Client;
3use std::collections::BTreeMap; 10use std::collections::BTreeMap;