Update rust (#1)
Rust Build / Check (push) Successful in 1m2s
Rust Build / Rustfmt (push) Successful in 57s
Rust Build / Test Suite (push) Successful in 1m9s
Rust Build / Clippy (push) Successful in 1m22s
Rust Build / build (push) Successful in 2m6s

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-05-22 11:21:58 -04:00
parent 6a905c7ec6
commit 02cc833cd9
8 changed files with 541 additions and 241 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
ROOT_DIRECTORY=/usr/local/bin
ICARUS_BASE_API_URL=http://api:3000
ICARUS_AUTH_BASE_API_URL=http://auth_api:3000
ICARUS_BASE_API_URL=http://api:8000
ICARUS_AUTH_BASE_API_URL=http://auth_api:8001
SERVICE_PASSPHRASE=iUOo1fxshf3y1tUGn1yU8l9raPApHCdinW0VdCHdRFEjqhR3Bf02aZzsKbLtaDFH
+4
View File
@@ -0,0 +1,4 @@
ROOT_DIRECTORY=/tmp
ICARUS_BASE_API_URL=http://localhost:8000
ICARUS_AUTH_BASE_API_URL=http://localhost:8001
SERVICE_PASSPHRASE=iUOo1fxshf3y1tUGn1yU8l9raPApHCdinW0VdCHdRFEjqhR3Bf02aZzsKbLtaDFH
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.94
toolchain: 1.95
components: cargo
- name: Extract Version from Cargo.toml
+5 -5
View File
@@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.94
toolchain: 1.95
- run: |
mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
@@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.94
toolchain: 1.95
- run: |
mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
@@ -54,7 +54,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.94
toolchain: 1.95
- run: rustup component add rustfmt
- run: |
mkdir -p ~/.ssh
@@ -73,7 +73,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.94
toolchain: 1.95
- run: rustup component add clippy
- run: |
mkdir -p ~/.ssh
@@ -92,7 +92,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.94
toolchain: 1.95
- run: |
mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
Generated
+514 -208
View File
File diff suppressed because it is too large Load Diff
+9 -9
View File
@@ -1,18 +1,18 @@
[package]
name = "songparser"
version = "0.5.0"
version = "0.6.0"
edition = "2024"
rust-version = "1.94"
rust-version = "1.95"
[dependencies]
tokio = { version = "1.51", features = ["full"] }
tokio = { version = "1.52.2", features = ["full"] }
futures = { version = "0.3.32" }
reqwest = { version = "0.12.28", features = ["json", "stream", "multipart"] }
reqwest = { version = "0.13.3", features = ["json", "stream", "multipart"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = { version = "1.0.149" }
time = { version = "0.3.47", features = ["macros", "serde"] }
uuid = { version = "1.23", features = ["v4", "serde"] }
rand = { version = "0.10.0" }
icarus_meta = { git = "ssh://git@git.kundeng.us/phoenix/icarus_meta.git", tag = "v0.5.0" }
icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.10.0" }
icarus_envy = { git = "ssh://git@git.kundeng.us/phoenix/icarus_envy.git", tag = "v0.6.0" }
uuid = { version = "1.23.1", features = ["v4", "serde"] }
rand = { version = "0.10.1" }
icarus_meta = { git = "ssh://git@git.kundeng.us/phoenix/icarus_meta.git", tag = "v0.6.0" }
icarus_models = { git = "ssh://git@git.kundeng.us/phoenix/icarus_models.git", tag = "v0.11.1" }
icarus_envy = { git = "ssh://git@git.kundeng.us/phoenix/icarus_envy.git", tag = "v0.7.0" }
+2 -2
View File
@@ -1,7 +1,7 @@
# Stage 1: Build the application
# Use a specific Rust version for reproducibility. Choose one that matches your development environment.
# Using slim variant for smaller base image
FROM rust:1.94 as builder
FROM rust:1.95 as builder
# Set the working directory inside the container
WORKDIR /usr/src/app
@@ -42,7 +42,7 @@ RUN --mount=type=ssh \
# Stage 2: Create the final, smaller runtime image
# Use a minimal base image like debian-slim or even distroless for security/size
FROM ubuntu:24.04
FROM debian:trixie-slim
# Install runtime dependencies if needed (e.g., SSL certificates)
RUN apt-get update && apt-get install -y ca-certificates libssl-dev libssl3 && rm -rf /var/lib/apt/lists/*
+4 -14
View File
@@ -75,14 +75,9 @@ pub mod get_metadata_queue {
) -> Result<reqwest::Response, reqwest::Error> {
let client = reqwest::Client::new();
let endpoint = String::from("api/v2/song/metadata/queue");
let api_url = format!("{}/{endpoint}", app.uri);
let api_url = format!("{}/{endpoint}?song_queue_id={song_queue_id}", app.uri);
let (key, header) = super::auth_header(app).await;
client
.get(api_url)
.query(&[("song_queue_id", song_queue_id)])
.header(key, header)
.send()
.await
client.get(api_url).header(key, header).send().await
}
pub mod response {
@@ -128,14 +123,9 @@ pub mod get_coverart_queue {
) -> Result<reqwest::Response, reqwest::Error> {
let client = reqwest::Client::new();
let endpoint = String::from("api/v2/coverart/queue");
let api_url = format!("{}/{endpoint}", app.uri);
let api_url = format!("{}/{endpoint}?song_queue_id={song_queue_id}", app.uri);
let (key, header) = super::auth_header(app).await;
client
.get(api_url)
.query(&[("song_queue_id", song_queue_id)])
.header(key, header)
.send()
.await
client.get(api_url).header(key, header).send().await
}
pub async fn get_data(