Skip to content

Commit cc91587

Browse files
authored
Prepare 0.2.0 release (#127)
* Prepare 0.2.0 release * Update default toolchain to 1.64.0
1 parent 26ddca2 commit cc91587

File tree

9 files changed

+82
-58
lines changed

9 files changed

+82
-58
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased changes
22

3+
# 0.2.0 - 2022-10-12
4+
35
## Features
46

57
- Support prompt message

Cargo.lock

Lines changed: 58 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
[package]
22
name = "yofi"
3-
version = "0.1.5"
3+
version = "0.2.0"
44
authors = ["Kitsu <[email protected]>"]
55
edition = "2021"
66

7+
description = "minimalistic menu for wayland"
8+
repository = "https://github.com/l4l/yofi"
9+
license = "MIT"
10+
keywords = ["application launcher", "menu", "wayland", "wlroots-based menu", "dmenu replacement"]
11+
712
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
813

914
[dependencies]
@@ -19,13 +24,13 @@ encoding_rs = "=0.8.28"
1924

2025

2126
anyhow = "1.0.51"
22-
wayland-protocols = { version = "0.29.1", default-features = false, features = ["unstable_protocols", "client"] }
23-
sctk = { version = "0.15.2", package = "smithay-client-toolkit", features = ["calloop"] }
27+
wayland-protocols = { version = "0.29.5", default-features = false, features = ["unstable_protocols", "client"] }
28+
sctk = { version = "0.16.0", package = "smithay-client-toolkit", features = ["calloop"] }
2429
raqote = "0.8.1"
2530
xdg = "2.4.0"
2631
fep = { version = "1.3.0", package = "freedesktop_entry_parser" }
2732
shlex = "1.1.0"
28-
nix = "0.22.3"
33+
nix = "0.24.2"
2934
log = "0.4.14"
3035
fern = "0.6.0"
3136
chrono = { version = "0.4.19", default-features = false, features = ["clock"] }
@@ -34,17 +39,17 @@ toml = "0.5.8"
3439
structopt = "0.3.25"
3540
either = "1.6.1"
3641
png = { version = "0.17.2", default-features = false }
37-
resvg = { version = "0.22.0", default-features = false }
38-
usvg = { version = "0.22.0", default-features = false }
39-
once_cell = "1.8.0"
40-
oneshot = { version = "0.1.3", default-features = false, features = ["std"] }
42+
resvg = { version = "0.23.0", default-features = false }
43+
usvg = { version = "0.23.0", default-features = false }
44+
once_cell = "1.15.0"
45+
oneshot = { version = "0.1.5", default-features = false, features = ["std"] }
4146
itertools = "0.8.2"
4247
nom = { version = "7.1.0", default-features = false, features = ["std"] }
4348
nom-regex = "0.2.0"
44-
regex = "1.5.4"
49+
regex = "1.6.0"
4550
libc = "0.2.109"
4651
tiny-skia = "0.6.1"
47-
unicode-segmentation = "1.8.0"
52+
unicode-segmentation = "1.10.0"
4853
levenshtein = "1.0.5"
4954
syslog = "6.0.0"
5055
defaults = "0.2.0"

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.58.1
1+
1.64.0

src/desktop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl Entry {
4141
self.actions[action - 1]
4242
.icon
4343
.as_ref()
44-
.or_else(|| self.entry.icon.as_ref())
44+
.or(self.entry.icon.as_ref())
4545
}
4646
}
4747
}

src/draw/background.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl Background {
1717
}
1818
}
1919

20-
impl<'a> Drawable for Background {
20+
impl Drawable for Background {
2121
fn draw(self, dt: &mut DrawTarget<'_>, _: u16, _: Space, _: Point) -> Space {
2222
dt.clear(self.params.color.as_source());
2323

src/draw/list_view.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ where
113113
.fallback_icon
114114
.as_ref()
115115
.and_then(|i| i.as_image());
116-
if let Some(icon) = item.icon.as_ref().or_else(|| fallback_icon.as_ref()) {
116+
if let Some(icon) = item.icon.as_ref().or(fallback_icon.as_ref()) {
117117
if icon.width == icon.height && icon.height == i32::from(icon_size) {
118118
dt.draw_image_at(
119119
x_offset,

src/input.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct KeyPress {
2222

2323
#[derive(Default)]
2424
struct SeatInfo {
25-
keyboard: Option<(wl_keyboard::WlKeyboard, calloop::RegistrationToken)>,
25+
keyboard: Option<wl_keyboard::WlKeyboard>,
2626
}
2727

2828
fn send_event(state: &mut ModifierState, tx: &Sender<KeyPress>, event: KbEvent) {
@@ -111,9 +111,8 @@ impl InputHandler {
111111
})
112112
.ok();
113113
}
114-
} else if let Some((kbd, source)) = data.keyboard.take() {
114+
} else if let Some(kbd) = data.keyboard.take() {
115115
kbd.release();
116-
loop_handle.remove(source);
117116
}
118117
};
119118

0 commit comments

Comments
 (0)