chore: Update cursive to 0.21.0
* Update cursive to 0.21.0 * Inject TERM=xterm in CI to help build ncurses backend
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -6,6 +6,9 @@ on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
env:
|
||||
TERM: xterm
|
||||
|
||||
jobs:
|
||||
# Build the Rust code.
|
||||
build:
|
||||
|
||||
438
Cargo.lock
generated
438
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -67,7 +67,6 @@ tokio-stream = {version = "0.1.15", features = ["sync"]}
|
||||
toml = "0.8"
|
||||
unicode-width = "0.1.13"
|
||||
url = "2.5"
|
||||
cursive_buffered_backend = "0.6.1"
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
signal-hook = "0.3.0"
|
||||
@@ -79,7 +78,7 @@ version = "0.13.2"
|
||||
|
||||
[dependencies.cursive]
|
||||
default-features = false
|
||||
version = "0.20.0"
|
||||
version = "0.21.0"
|
||||
|
||||
[dependencies.notify-rust]
|
||||
default-features = false
|
||||
|
||||
@@ -44,7 +44,6 @@ pub fn setup_logging(filename: &Path) -> Result<(), fern::InitError> {
|
||||
.level(log::LevelFilter::Trace)
|
||||
// Set runtime log level for modules
|
||||
.level_for("librespot", log::LevelFilter::Debug)
|
||||
.level_for("cursive_buffered_backend", log::LevelFilter::Debug)
|
||||
// Output to stdout, files, and other Dispatch configurations
|
||||
.chain(fern::log_file(filename)?)
|
||||
// Apply globally
|
||||
|
||||
@@ -29,7 +29,7 @@ pub trait SelectViewExt {
|
||||
fn handle_command(&mut self, cmd: &Command) -> Result<CommandResult, String>;
|
||||
}
|
||||
|
||||
impl<T: 'static> SelectViewExt for cursive::views::SelectView<T> {
|
||||
impl<T: Send + Sync + 'static> SelectViewExt for cursive::views::SelectView<T> {
|
||||
fn handle_command(&mut self, cmd: &Command) -> Result<CommandResult, String> {
|
||||
match cmd {
|
||||
Command::Move(mode, amount) => {
|
||||
|
||||
@@ -375,7 +375,7 @@ impl ViewExt for SelectArtistActionMenu {
|
||||
}
|
||||
}
|
||||
|
||||
fn handle_move_command<T: 'static>(
|
||||
fn handle_move_command<T: Send + Sync + 'static>(
|
||||
sel: &mut Modal<Dialog>,
|
||||
s: &mut Cursive,
|
||||
cmd: &Command,
|
||||
|
||||
@@ -26,8 +26,7 @@ pub mod cover;
|
||||
/// Create a CursiveRunner which implements the drawing logic and event loop.
|
||||
pub fn create_cursive() -> Result<CursiveRunner<Cursive>, Box<dyn std::error::Error>> {
|
||||
let backend = cursive::backends::try_default()?;
|
||||
let buffered_backend = Box::new(cursive_buffered_backend::BufferedBackend::new(backend));
|
||||
let mut cursive_runner = CursiveRunner::new(cursive::Cursive::new(), buffered_backend);
|
||||
let mut cursive_runner = CursiveRunner::new(cursive::Cursive::new(), backend);
|
||||
|
||||
cursive_runner.set_window_title(BIN_NAME);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user