Skip to content

Commit

Permalink
Update ratatui dependency to version 0.26 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
airstrike authored Mar 4, 2024
1 parent 0382ebb commit 93ee9c6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ serde = { version = "^1", features = ["derive"], optional = true }
termion = { version = "^2", optional = true }
thiserror = "^1.0.0"
tui = { version = "0.19", default-features = false, optional = true }
ratatui = { version = "0.23", default-features = false, optional = true }
ratatui = { version = "0.26", default-features = false, optional = true }
tuirealm_derive = { version = "^1.0.0", optional = true }

[dev-dependencies]
Expand Down
4 changes: 4 additions & 0 deletions src/adapter/crossterm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ use crate::tui::{Frame as TuiFrame, Terminal as TuiTerminal};
// -- Frame

/// Frame represents the Frame where the view will be displayed in
#[cfg(feature = "ratatui")]
pub type Frame<'a> = TuiFrame<'a>;

#[cfg(feature = "tui")]
pub type Frame<'a> = TuiFrame<'a, CrosstermBackend<Stdout>>;

/// Terminal must be used to interact with the terminal in tui applications
Expand Down
4 changes: 4 additions & 0 deletions src/adapter/termion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ use crate::tui::{Frame as TuiFrame, Terminal as TuiTerminal};
// -- Frame

/// Frame represents the Frame where the view will be displayed in
#[cfg(feature = "ratatui")]
pub type Frame<'a> = TuiFrame<'a>;

#[cfg(feature = "tui")]
pub type Frame<'a> =
TuiFrame<'a, TermionBackend<MouseTerminal<AlternateScreen<RawTerminal<Stdout>>>>>;

Expand Down
1 change: 0 additions & 1 deletion src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pub mod subscription;
mod view;

// -- export
pub use command::Cmd;
pub use component::{Component, MockComponent};
pub use state::{State, StateValue};
// -- internal
Expand Down

0 comments on commit 93ee9c6

Please sign in to comment.