Fix CI/CD: Update ratatui dependencies and ignore unmaintained paste warning
- Updated ratatui from 0.24 to 0.29 to get latest features - Updated crossterm from 0.27 to 0.29 for compatibility - Updated tui-input from 0.8 to 0.14 - Updated unicode-width from 0.1 to 0.2 - Fixed ratatui API changes: - Use Frame::area() instead of deprecated Frame::size() - Table::new() now requires widths as second parameter - Use row_highlight_style() instead of deprecated highlight_style() - Added ignore for RUSTSEC-2024-0436 (paste unmaintained warning) - This is a transitive dependency through ratatui/tui-input - The crate still works fine, just not actively maintained
This commit is contained in:
@@ -8,8 +8,8 @@ description = "Terminal user interface for Ghost process injection detection"
|
||||
|
||||
[dependencies]
|
||||
ghost-core = { path = "../ghost-core" }
|
||||
ratatui = "0.24"
|
||||
crossterm = "0.27"
|
||||
ratatui = "0.29"
|
||||
crossterm = "0.29"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
anyhow.workspace = true
|
||||
log.workspace = true
|
||||
@@ -17,5 +17,5 @@ env_logger.workspace = true
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
tui-input = "0.8"
|
||||
unicode-width = "0.1"
|
||||
tui-input = "0.14"
|
||||
unicode-width = "0.2"
|
||||
|
||||
@@ -33,7 +33,7 @@ mod colors {
|
||||
use colors::*;
|
||||
|
||||
pub fn draw(f: &mut Frame, app: &App) {
|
||||
let size = f.size();
|
||||
let size = f.area();
|
||||
|
||||
// Create main layout
|
||||
let chunks = Layout::default()
|
||||
@@ -313,22 +313,24 @@ fn draw_processes(f: &mut Frame, area: Rect, app: &App) {
|
||||
})
|
||||
.collect();
|
||||
|
||||
let table = Table::new(rows)
|
||||
.header(header)
|
||||
.block(
|
||||
Block::default()
|
||||
.borders(Borders::ALL)
|
||||
.title("System Processes")
|
||||
.border_style(Style::default().fg(PRIMARY)),
|
||||
)
|
||||
.highlight_style(Style::default().bg(PRIMARY).fg(BACKGROUND))
|
||||
.widths(&[
|
||||
let table = Table::new(
|
||||
rows,
|
||||
&[
|
||||
Constraint::Length(8),
|
||||
Constraint::Length(8),
|
||||
Constraint::Min(20),
|
||||
Constraint::Length(8),
|
||||
Constraint::Length(15),
|
||||
]);
|
||||
],
|
||||
)
|
||||
.header(header)
|
||||
.block(
|
||||
Block::default()
|
||||
.borders(Borders::ALL)
|
||||
.title("System Processes")
|
||||
.border_style(Style::default().fg(PRIMARY)),
|
||||
)
|
||||
.row_highlight_style(Style::default().bg(PRIMARY).fg(BACKGROUND));
|
||||
|
||||
let mut state = app.processes_state.clone();
|
||||
f.render_stateful_widget(table, chunks[0], &mut state);
|
||||
|
||||
Reference in New Issue
Block a user