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

14
Cargo.lock generated
View File

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

View File

@ -1,11 +1,16 @@
[package]
name = "lowfi"
version = "1.2.0"
version = "1.2.1"
edition = "2021"
description = "An extremely simple lofi player."
license = "MIT"
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"]
documentation = "https://github.com/talwat/lowfi"
homepage = "https://github.com/talwat/lowfi"
@ -14,21 +19,24 @@ repository = "https://github.com/talwat/lowfi"
[dependencies]
# Basics
clap = { version = "4.5.18", features = ["derive", "cargo"] }
eyre = "0.6.12"
eyre = { version = "0.6.12" }
rand = "0.8.5"
# 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"
arc-swap = "1.7.1"
# Data
reqwest = { version = "0.12.7", features = ["blocking"] }
reqwest = "0.12.7"
bytes = "1.7.2"
# Misc
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"
Inflector = "0.11.4"
lazy_static = "1.5.0"