Skip to content

Commit

Permalink
Merge pull request #49 from asomers/ratatui
Browse files Browse the repository at this point in the history
Update ratatui, clap, and enum-as-inner
  • Loading branch information
asomers authored Dec 13, 2024
2 parents f2b2368 + 6d2116f commit cc237f3
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 59 deletions.
4 changes: 2 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ build: &BUILD

task:
env:
VERSION: 1.70.0
VERSION: 1.74.0
name: FreeBSD 13.3 MSRV
freebsd_instance:
image: freebsd-13-3-release-amd64
Expand Down Expand Up @@ -58,7 +58,7 @@ task:
task:
name: Linux MSRV
container:
image: rust:1.70.0
image: rust:1.74.0
setup_script:
- rustup component add rustfmt
<< : *BUILD
Expand Down
144 changes: 90 additions & 54 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]

[dependencies]
cfg-if = "1.0"
clap = { version = "4.4", features = ["derive"] }
clap = { version = "4.5", features = ["derive"] }
humanize-rs = "0.1.5"
nix = { version = "0.27.0", default-features = false, features = ["time"] }
sysctl = "0.5.0"
crossterm = { version = "0.27.0", default-features = false , features = ["events"]}
ratatui = { version = "0.25.0", default-features = false, features = ["crossterm", "unstable"] }
ratatui = { version = "0.27.0", default-features = false, features = ["crossterm", "unstable"] }

[target.'cfg(target_os = "linux")'.dependencies]
glob = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ mod ui {
let t = Table::new(rows, widths)
.header(header)
.block(Block::default())
.segment_size(ratatui::layout::SegmentSize::LastTakesRemainder);
.flex(ratatui::layout::Flex::Legacy);
f.render_widget(t, f.size());
}

Expand Down

0 comments on commit cc237f3

Please sign in to comment.