Skip to content

Commit

Permalink
chore: upgrade dependencies (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardspy authored Dec 7, 2024
1 parent fcba917 commit 32b182f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ clippy.nursery = "warn"
[dependencies]
ansi_term = { version = "0.12.1", optional = true }
css-colors = { version = "1.0.1", optional = true }
ratatui = { version = "0.26.3", optional = true }
ratatui = { version = "0.29.0", optional = true }
serde = { version = "1.0.203", features = ["derive"], optional = true }

[build-dependencies]
Expand All @@ -35,7 +35,7 @@ serde_json = "1.0.117"
syn = "2.0.66"

[dev-dependencies]
crossterm = "0.27.0"
crossterm = "0.28.1"
serde_json = "1.0.117"

[features]
Expand Down
9 changes: 6 additions & 3 deletions examples/ratatui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ use std::io::{self, stdout};

use catppuccin::PALETTE;
use ratatui::{
prelude::*,
backend::CrosstermBackend,
layout::Rect,
style::Stylize as _,
text::{Line, Span},
widgets::{Paragraph, Widget},
Terminal, TerminalOptions, Viewport,
};

fn main() -> io::Result<()> {
Expand Down Expand Up @@ -45,8 +49,7 @@ fn main() -> io::Result<()> {
Paragraph::new(flavor.name.to_string()).render(Rect::new(0, 0, width, 1), buf);
Paragraph::new(Line::from(analogous)).render(Rect::new(0, 1, width, 1), buf);
Paragraph::new(Line::from(monochromatic)).render(Rect::new(0, 2, width, 1), buf);
Paragraph::new(format!("{} ANSI", flavor.name.to_string()))
.render(Rect::new(0, 4, width, 1), buf);
Paragraph::new(format!("{} ANSI", flavor.name)).render(Rect::new(0, 4, width, 1), buf);
Paragraph::new(Line::from(ansi_normals)).render(Rect::new(0, 5, width, 1), buf);
Paragraph::new(Line::from(ansi_brights)).render(Rect::new(0, 6, width, 1), buf);
})?;
Expand Down

0 comments on commit 32b182f

Please sign in to comment.