Skip to content

Commit

Permalink
refactor: update to ratatui v0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Aug 7, 2024
1 parent 8c5cb84 commit 9425539
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ updates:
commit-message:
prefix: "build(cargo):"
ignore:
- dependency-name: crossterm
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
- dependency-name: rustls*
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"]
- dependency-name: "*"
Expand Down
30 changes: 10 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ url = "2"
anyhow = "1"
chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] }
clap = { version = "4", features = ["deprecated", "derive", "env", "wrap_help"] }
crossterm = "0.27"
ego-tree = "0.6"
rand = "0.8"
ratatui = "0.26"
ratatui-binary-data-widget = { git = "https://github.com/EdJoPaTo/ratatui-binary-data-widget", branch = "main" }
ratatui = "0.27"
ratatui-binary-data-widget = { git = "https://github.com/EdJoPaTo/ratatui-binary-data-widget", branch = "ratatui-v0.27" }
rmpv = { version = "1", features = ["with-serde"] }
rumqttc = { version = "0.24", features = ["websocket"] }
rustls = "0.22"
Expand All @@ -44,8 +43,7 @@ rustls-pemfile = "2"
rustls-pki-types = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tui-tree-widget = "0.20"
unicode-width = "=0.1.12" # remove version pinning when https://github.com/ratatui-org/ratatui/pull/1226 is released
tui-tree-widget = "0.21"
url = "2"

# https://crates.io/crates/cargo-deb
Expand Down
5 changes: 3 additions & 2 deletions src/interactive/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
use std::time::{Duration, Instant};

use crossterm::event::{
use ratatui::crossterm::event::{
Event, KeyCode, KeyEvent, KeyEventKind, KeyModifiers, MouseButton, MouseEventKind,
};
use crossterm::event::{Event, KeyCode, KeyEvent, KeyModifiers, MouseButton, MouseEventKind};
use ratatui::backend::{Backend, CrosstermBackend};
use ratatui::layout::{Alignment, Position, Rect};
use ratatui::text::Span;
use ratatui::widgets::Paragraph;
use ratatui::{Frame, Terminal};
use ratatui::{crossterm, Frame, Terminal};
use rumqttc::{Client, Connection};

use self::ui::ElementInFocus;
Expand Down

0 comments on commit 9425539

Please sign in to comment.