chore: minimize more of the dependencies for better compilation speeds

This commit is contained in:
talwat 2024-10-02 00:10:38 +02:00
parent 6d912a8d5e
commit 5a498b1c98
3 changed files with 25 additions and 17 deletions

View File

@ -33,14 +33,14 @@ jobs:
name: lowfi-windows-x86_64.exe name: lowfi-windows-x86_64.exe
command: build command: build
- release_for: MacOS-x86_64 - release_for: MacOS x86_64
os: macos-latest os: macos-latest
target: x86_64-apple-darwin target: x86_64-apple-darwin
bin: lowfi bin: lowfi
name: lowfi-darwin-x86_64 name: lowfi-darwin-x86_64
command: build command: build
- release_for: MacOS-aarch64 - release_for: MacOS aarch64
os: macos-latest os: macos-latest
target: aarch64-apple-darwin target: aarch64-apple-darwin
bin: lowfi bin: lowfi
@ -56,6 +56,10 @@ jobs:
with: with:
submodules: "true" submodules: "true"
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt install libasound2-dev
- name: Build binary - name: Build binary
uses: houseabsolute/actions-rust-cross@v0 uses: houseabsolute/actions-rust-cross@v0
with: with:

14
Cargo.lock generated
View File

@ -982,7 +982,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
[[package]] [[package]]
name = "lowfi" name = "lowfi"
version = "1.2.0" version = "1.2.1"
dependencies = [ dependencies = [
"Inflector", "Inflector",
"arc-swap", "arc-swap",
@ -1509,7 +1509,6 @@ dependencies = [
"base64", "base64",
"bytes", "bytes",
"encoding_rs", "encoding_rs",
"futures-channel",
"futures-core", "futures-core",
"futures-util", "futures-util",
"h2", "h2",
@ -1610,11 +1609,10 @@ dependencies = [
[[package]] [[package]]
name = "rustls-pemfile" name = "rustls-pemfile"
version = "2.1.3" version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "196fe16b00e106300d3e45ecfcb764fa292a535d7326a29a5875c579c7417425" checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"
dependencies = [ dependencies = [
"base64",
"rustls-pki-types", "rustls-pki-types",
] ]
@ -1985,9 +1983,9 @@ dependencies = [
[[package]] [[package]]
name = "tempfile" name = "tempfile"
version = "3.12.0" version = "3.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" checksum = "f0f2c9fc62d0beef6951ccffd757e241266a2c833136efbe35af6cd2567dca5b"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"fastrand", "fastrand",
@ -2052,9 +2050,7 @@ dependencies = [
"bytes", "bytes",
"libc", "libc",
"mio", "mio",
"parking_lot",
"pin-project-lite", "pin-project-lite",
"signal-hook-registry",
"socket2", "socket2",
"tokio-macros", "tokio-macros",
"windows-sys 0.52.0", "windows-sys 0.52.0",

View File

@ -1,11 +1,16 @@
[package] [package]
name = "lowfi" name = "lowfi"
version = "1.2.0" version = "1.2.1"
edition = "2021" edition = "2021"
description = "An extremely simple lofi player." description = "An extremely simple lofi player."
license = "MIT" license = "MIT"
readme = "README.md" readme = "README.md"
categories = ["command-line-interface", "command-line-utilities", "multimedia", "multimedia::audio"] categories = [
"command-line-interface",
"command-line-utilities",
"multimedia",
"multimedia::audio",
]
keywords = ["lowfi", "lofi", "music"] keywords = ["lowfi", "lofi", "music"]
documentation = "https://github.com/talwat/lowfi" documentation = "https://github.com/talwat/lowfi"
homepage = "https://github.com/talwat/lowfi" homepage = "https://github.com/talwat/lowfi"
@ -14,21 +19,24 @@ repository = "https://github.com/talwat/lowfi"
[dependencies] [dependencies]
# Basics # Basics
clap = { version = "4.5.18", features = ["derive", "cargo"] } clap = { version = "4.5.18", features = ["derive", "cargo"] }
eyre = "0.6.12" eyre = { version = "0.6.12" }
rand = "0.8.5" rand = "0.8.5"
# Async # Async
tokio = { version = "1.40.0", features = ["full"] } tokio = { version = "1.40.0", features = [
"macros",
"rt-multi-thread",
], default-features = false }
futures = "0.3.30" futures = "0.3.30"
arc-swap = "1.7.1" arc-swap = "1.7.1"
# Data # Data
reqwest = { version = "0.12.7", features = ["blocking"] } reqwest = "0.12.7"
bytes = "1.7.2" bytes = "1.7.2"
# Misc # Misc
scraper = "0.20.0" scraper = "0.20.0"
rodio = { version = "0.19.0", features = ["mp3"], default-features = false } rodio = { version = "0.19.0", features = ["symphonia-mp3"], default-features = false }
crossterm = "0.28.1" crossterm = "0.28.1"
Inflector = "0.11.4" Inflector = "0.11.4"
lazy_static = "1.5.0" lazy_static = "1.5.0"