Skip to content

Commit

Permalink
[IT-23] upgrade dependencies and fix for clippy lint (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harzu authored Dec 14, 2024
1 parent 9726602 commit dc2575c
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 33 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ members = ["examples/*"]
name = "iced_term"
description = "Terminal emulator widget powered by ICED framework and alacritty terminal backend."
authors = ["Ilya Shvyryalkin <ilyashvy@gmail.com>"]
version = "0.5.0"
version = "0.5.1"
edition = "2021"
repository = "https://github.com/Harzu/iced_term"
categories = ["gui"]
license = "MIT"

[dependencies]
alacritty_terminal = "0.24.0"
alacritty_terminal = "0.24.1"
iced = { version = "0.13.1", features = [
"smol",
"tokio",
Expand All @@ -21,8 +21,8 @@ iced = { version = "0.13.1", features = [
"lazy",
"advanced",
] }
tokio = { version = "1.40.0", features = ["full"] }
tokio = { version = "1.41.1", features = ["full"] }
iced_graphics = "0.13.0"
iced_core = "0.13.2"
open = "5.3.0"
anyhow = "1.0.89"
open = "5.3.1"
anyhow = "1.0.93"
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This widget was tested on MacOS, Linux and Windows (but only under [WSL2](https:
From crates.io

```toml
iced_term = "0.5.0"
iced_term = "0.5.1"
```

From git
Expand Down Expand Up @@ -224,11 +224,17 @@ You can also look at [examples](./examples) directory for more information about
- [themes](./examples/themes/) - The example that show how you can change terminal color scheme.
- [fonts](./examples/fonts/) - The examples that show how you can change font type or font size in your terminal emulator app.

You can run any example via

```shell
cargo run --package <example name>
```

## Dependencies

- [iced (0.13.1)](https://github.com/iced-rs/iced/tree/master)
- [alacritty_terminal (0.24.0)](https://github.com/alacritty/alacritty/tree/master/alacritty_terminal)
- [tokio (1.40.0)](https://github.com/tokio-rs/tokio)
- [alacritty_terminal (0.24.1)](https://github.com/alacritty/alacritty/tree/master/alacritty_terminal)
- [tokio (1.41.1)](https://github.com/tokio-rs/tokio)

## Contributing / Feedback

Expand Down
2 changes: 1 addition & 1 deletion examples/custom_bindings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "custom_bindings"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion examples/fonts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fonts"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion examples/full_screen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "full_screen"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion examples/split_view/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "split_view"
version = "0.5.0"
version = "0.5.1"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/themes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "themes"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ mod terminal;
mod theme;
mod view;

pub use alacritty_terminal::term::TermMode;
pub use alacritty_terminal::event::Event as AlacrittyEvent;
pub use alacritty_terminal::term::TermMode;
pub use subscription::Subscription;
pub use terminal::{Command, Event, Terminal};
pub use theme::{ColorPalette, Theme};
Expand Down
1 change: 0 additions & 1 deletion src/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ impl Subscription {
});
},
None => {
println!("None");
if !shutdown {
panic!("iced_term stream {}: terminal event channel closed unexpected", term_id);
}
Expand Down
4 changes: 2 additions & 2 deletions src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct TerminalView<'a> {
}

impl<'a> TerminalView<'a> {
pub fn show(term: &'a Terminal) -> Element<'_, Event> {
pub fn show(term: &'a Terminal) -> Element<'a, Event> {
container(Self { term })
.width(Length::Fill)
.height(Length::Fill)
Expand Down Expand Up @@ -368,7 +368,7 @@ impl<'a> TerminalView<'a> {
}
}

impl<'a> Widget<Event, Theme, iced::Renderer> for TerminalView<'a> {
impl Widget<Event, Theme, iced::Renderer> for TerminalView<'_> {
fn size(&self) -> Size<Length> {
Size {
width: Length::Fill,
Expand Down

0 comments on commit dc2575c

Please sign in to comment.