update dependencies
This commit is contained in:
parent
a1648a1061
commit
e1eb0d99f1
11
Cargo.toml
11
Cargo.toml
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "bevy_terminal_display"
|
name = "bevy_terminal_display"
|
||||||
version = "0.4.2"
|
version = "0.4.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "0BSD OR MIT OR Apache-2.0"
|
license = "0BSD OR MIT OR Apache-2.0"
|
||||||
description = "A plugin for the Bevy game engine which enables rendering to a terminal using unicode braille characters."
|
description = "A plugin for the Bevy game engine which enables rendering to a terminal using unicode braille characters."
|
||||||
@ -8,12 +8,15 @@ repository = "https://github.com/exvacuum/bevy_terminal_display"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
crossbeam-channel = "0.5"
|
crossbeam-channel = "0.5"
|
||||||
crossterm = "0.27"
|
crossterm = "0.28"
|
||||||
downcast-rs = "1.2"
|
downcast-rs = "1.2"
|
||||||
once_cell = "1.19"
|
once_cell = "1.19"
|
||||||
bevy = "0.14"
|
|
||||||
bevy_headless_render = "0.1"
|
bevy_headless_render = "0.1"
|
||||||
bevy_dither_post_process = "0.2"
|
bevy_dither_post_process = "0.2"
|
||||||
ratatui = "0.26"
|
ratatui = "0.28"
|
||||||
color-eyre = "0.6"
|
color-eyre = "0.6"
|
||||||
|
|
||||||
|
[dependencies.bevy]
|
||||||
|
version = "0.14"
|
||||||
|
default-features = false
|
||||||
|
features = ["bevy_render"]
|
||||||
|
@ -74,7 +74,7 @@ pub fn print_to_terminal(
|
|||||||
.white()
|
.white()
|
||||||
.bold()
|
.bold()
|
||||||
.wrap(Wrap { trim: true }),
|
.wrap(Wrap { trim: true }),
|
||||||
frame.size(),
|
frame.area(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let mut active_widgets = widgets
|
let mut active_widgets = widgets
|
||||||
@ -83,7 +83,7 @@ pub fn print_to_terminal(
|
|||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
active_widgets.sort_by(|a, b| a.depth.cmp(&b.depth));
|
active_widgets.sort_by(|a, b| a.depth.cmp(&b.depth));
|
||||||
for mut widget in active_widgets {
|
for mut widget in active_widgets {
|
||||||
widget.widget.render(frame, frame.size());
|
widget.widget.render(frame, frame.area());
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.expect("Failed to draw terminal frame");
|
.expect("Failed to draw terminal frame");
|
||||||
|
@ -17,7 +17,7 @@ use bevy_dither_post_process::DitherPostProcessPlugin;
|
|||||||
use bevy_headless_render::HeadlessRenderPlugin;
|
use bevy_headless_render::HeadlessRenderPlugin;
|
||||||
use color_eyre::config::HookBuilder;
|
use color_eyre::config::HookBuilder;
|
||||||
pub use crossterm;
|
pub use crossterm;
|
||||||
use crossterm::{event::{DisableMouseCapture, PopKeyboardEnhancementFlags}, terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, ExecutableCommand};
|
use crossterm::{event::{DisableMouseCapture, PopKeyboardEnhancementFlags}, terminal::{disable_raw_mode, LeaveAlternateScreen}, ExecutableCommand};
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
pub use ratatui;
|
pub use ratatui;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user