diff --git a/Cargo.lock b/Cargo.lock index 2cfc4a16..36265097 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 4 +version = 3 [[package]] name = "ab_glyph" @@ -807,14 +807,14 @@ dependencies = [ [[package]] name = "console" -version = "0.15.8" +version = "0.15.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" +checksum = "ea3c6ecd8059b57859df5c69830340ed3c41d30e3da0c1cbed90a96ac853041b" dependencies = [ "encode_unicode", - "lazy_static", "libc", - "windows-sys 0.52.0", + "once_cell", + "windows-sys 0.59.0", ] [[package]] @@ -1247,9 +1247,9 @@ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "encode_unicode" -version = "0.3.6" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" +checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" [[package]] name = "encoding_rs" @@ -2315,6 +2315,12 @@ dependencies = [ "syn 2.0.90", ] +[[package]] +name = "icy_sixel" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86858ae800284d596cfdefcb0ad435c3493c12f35367431bbe9b2b3858c1155b" + [[package]] name = "ident_case" version = "1.0.1" @@ -2604,7 +2610,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34" dependencies = [ "cfg-if", - "windows-targets 0.52.6", + "windows-targets 0.48.5", ] [[package]] @@ -6142,13 +6148,13 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "viuer" version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3f25eeadaacb5253b24f4b576fecad471b07107e552e2a631a6d7ab5e1e49e0" +source = "git+https://github.com/ollbx/viuer/?branch=icy_sixel#5c3ebd71453469f80112706b45a4d20df9545a8c" dependencies = [ "ansi_colours", "base64 0.22.1", "console", "crossterm", + "icy_sixel", "image", "lazy_static", "sixel-rs", @@ -6454,7 +6460,7 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.48.0", ] [[package]] diff --git a/spotify_player/Cargo.toml b/spotify_player/Cargo.toml index 5b0c33ed..bfbe3612 100644 --- a/spotify_player/Cargo.toml +++ b/spotify_player/Cargo.toml @@ -41,7 +41,7 @@ tracing = "0.1.41" tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } backtrace = "0.3.74" souvlaki = { version = "0.7.3", optional = true } -viuer = { version = "0.9.1", optional = true } +viuer = { version = "0.9.1", optional = true, git = "https://github.com/ollbx/viuer/", branch = "icy_sixel" } image = { version = "0.25.5", optional = true } notify-rust = { version = "4.11.3", optional = true, default-features = false, features = [ "d", @@ -88,6 +88,7 @@ streaming = ["librespot-playback", "librespot-connect"] media-control = ["souvlaki", "winit", "windows"] image = ["viuer", "dep:image"] sixel = ["image", "viuer/sixel"] +icy-sixel = ["image", "viuer/icy_sixel"] notify = ["notify-rust"] daemon = ["daemonize", "streaming"] fzf = ["fuzzy-matcher"] diff --git a/spotify_player/src/main.rs b/spotify_player/src/main.rs index 0c646702..68b06575 100644 --- a/spotify_player/src/main.rs +++ b/spotify_player/src/main.rs @@ -80,7 +80,7 @@ async fn start_app(state: &state::SharedState) -> Result<()> { // initialize `viuer` supports for kitty, iterm2, and sixel viuer::get_kitty_support(); viuer::is_iterm_supported(); - #[cfg(feature = "sixel")] + #[cfg(any(feature = "sixel", feature = "icy-sixel"))] viuer::is_sixel_supported(); } }