-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sixel-bytes, optional serde, Send+Sync, rustix::termios icotl, fixes
* `sixel-bytes` encodes to `String` instead of file. * `serde` for `BackendType` for e.g. user configs. * `Send + Sync` for threads/tokio. * `rustix::termios` to get window/font size until ratatui/crossterm get `window_size()`: [`ratatui::Backend::window_size()`](ratatui/ratatui#276) needs [`crossterm::terminal::window_size()`](crossterm-rs/crossterm#790).
- Loading branch information
Showing
14 changed files
with
467 additions
and
343 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ratatu-image" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
edition = "2021" | ||
autoexamples = true | ||
authors = ["Benjamin Große <[email protected]>"] | ||
|
@@ -16,22 +16,28 @@ exclude = [ | |
rust-version = "1.65.0" | ||
|
||
[features] | ||
default = ["crossterm", "sixel"] | ||
default = ["crossterm", "sixel", "rustix"] | ||
crossterm = ["dep:crossterm"] | ||
termion = ["dep:termion"] | ||
termwiz = ["dep:termwiz"] | ||
sixel = ["dep:sixel-rs"] | ||
sixel = ["dep:sixel-bytes"] | ||
serde = ["dep:serde"] | ||
rustix = ["dep:rustix"] | ||
|
||
[dependencies] | ||
dyn-clone = "1.0.11" | ||
image = { version = "0.24.5" } | ||
# ratatui with "cell skipping" and "window_size", https://github.com/tui-rs-revival/ratatui/pull/215 and https://github.com/tui-rs-revival/ratatui/pull/276 | ||
ratatui = { git = "https://github.com/benjajaja/ratatui", rev = "8729b61fab885dc141c6e0968b4863386c544d9d", features = ["crossterm", "termion", "termwiz" ] } | ||
sixel-rs = { version = "0.3.3", optional = true } | ||
# sixel-rs = { version = "0.3.3", optional = true } | ||
sixel-bytes = { version = "0.2.1", optional = true } | ||
# crossterm with "window_size", https://github.com/crossterm-rs/crossterm/pull/790 | ||
crossterm = { git = "https://github.com/benjajaja/crossterm", rev = "db515a16f95b36b4871488aa543f564bc929d62e" , optional = true } | ||
# crossterm = { git = "https://github.com/benjajaja/crossterm", rev = "db515a16f95b36b4871488aa543f564bc929d62e" , optional = true } | ||
crossterm = { version = "0.25", optional = true } | ||
termion = { version = "2.0", optional = true } | ||
termwiz = { version = "0.20", optional = true } | ||
serde = { version = "^1.0", optional = true } | ||
rustix = { version = "^0.38.4", optional = true, features = ["stdio", "termios"] } | ||
|
||
[[example]] | ||
name = "demo" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# {{crate}} | ||
|
||
![Screenshot](./assets/Screenshot.png) | ||
|
||
{{readme}} | ||
|
||
Current version: {{version}} | ||
|
||
License: {{license}} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Oops, something went wrong.