Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IT-23] upgrade dependencies and fix for clippy lint #26

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading