Update to ratatui-image@0.4.3 to use native sixel lib (#181)

This commit is contained in:
Benjamin Grosse 2023-11-24 15:22:39 -08:00 committed by GitHub
parent 1ae22086f6
commit 4236d9f53e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 31 deletions

View file

@ -44,9 +44,9 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: 'github-check' reporter: 'github-check'
- name: Run tests - name: Run tests
run: cargo test ${{ matrix.platform == 'windows-latest' && '--no-default-features' || '' }} run: cargo test
- name: Build artifacts - name: Build artifacts
run: cargo build --release ${{ matrix.platform == 'windows-latest' && '--no-default-features' || '' }} run: cargo build --release
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@master uses: actions/upload-artifact@master
with: with:

37
Cargo.lock generated
View file

@ -1656,6 +1656,12 @@ dependencies = [
"cc", "cc",
] ]
[[package]]
name = "icy_sixel"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1dc4d30216c3fc247730a4c6c74db2bd217a5454361ce24d70e504bda0cd345e"
[[package]] [[package]]
name = "ident_case" name = "ident_case"
version = "1.0.1" version = "1.0.1"
@ -1933,12 +1939,6 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
[[package]]
name = "make-cmd"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8ca8afbe8af1785e09636acb5a41e08a765f5f0340568716c18a8700ba3c0d3"
[[package]] [[package]]
name = "malloc_buf" name = "malloc_buf"
version = "0.0.6" version = "0.0.6"
@ -2882,19 +2882,19 @@ dependencies = [
[[package]] [[package]]
name = "ratatui-image" name = "ratatui-image"
version = "0.4.1" version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3a43ba44f10847b9f76f54e528832b0d63029ce48be7663fb8ddded27ac1457" checksum = "d864e8e24222cc289906cc53fede6f8751ce2935d636842a04dc65dfb9958e62"
dependencies = [ dependencies = [
"base64 0.21.4", "base64 0.21.4",
"crossterm 0.25.0", "crossterm 0.25.0",
"dyn-clone", "dyn-clone",
"icy_sixel",
"image", "image",
"rand 0.8.5", "rand 0.8.5",
"ratatui", "ratatui",
"rustix 0.38.17", "rustix 0.38.17",
"serde", "serde",
"sixel-bytes",
] ]
[[package]] [[package]]
@ -3438,25 +3438,6 @@ version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
[[package]]
name = "sixel-bytes"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "45cad296a72571e80953823496e9a55caf893e264de9a7c5cfd29427fca720fc"
dependencies = [
"sixel-sys-static",
]
[[package]]
name = "sixel-sys-static"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2988846c5099382a880a7dd385d38b203a60430710a9c22e538d500e6908f4f9"
dependencies = [
"make-cmd",
"pkg-config",
]
[[package]] [[package]]
name = "slab" name = "slab"
version = "0.4.9" version = "0.4.9"

View file

@ -40,7 +40,7 @@ markup5ever_rcdom = "0.2.0"
mime = "^0.3.16" mime = "^0.3.16"
mime_guess = "^2.0.4" mime_guess = "^2.0.4"
open = "3.2.0" open = "3.2.0"
ratatui-image = { version = "0.4.1", features = ["serde"] } ratatui-image = { version = "0.4.3", features = ["serde"] }
regex = "^1.5" regex = "^1.5"
rpassword = "^7.2" rpassword = "^7.2"
serde = "^1.0" serde = "^1.0"