Skip to content

Commit

Permalink
Update deps (#508)
Browse files Browse the repository at this point in the history
* Update dependencies

* Update deny.toml

* Update nix

* Update CHANGELOG
  • Loading branch information
Riey authored Jul 11, 2021
1 parent 0de87e7 commit 34ddeaf
Show file tree
Hide file tree
Showing 9 changed files with 140 additions and 211 deletions.
324 changes: 126 additions & 198 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ llvmPackages_11.stdenv.mkDerivation rec {
version = kimeVersion;
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sha256 = "czmIhCMQ1UA6LwgA4MH6GhTHPiewVVY4DoArF+1OaxY=";
sha256 = "sha256-j3S457qDgHEcKC9FraiYsj/ykHB/cJVNLI2H/XcRDUk=";
};
LIBCLANG_PATH = "${pkgs.llvmPackages_11.libclang}/lib";
dontUseCmakeConfigure = true;
Expand Down
3 changes: 1 addition & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ skip = [
# dependencies starting at the specified crate, up to a certain depth, which is
# by default infinite
skip-tree = [
# wait for new release
{ name = "wayland-client", version = "=0.28.3" },
{ name = "criterion", version = "=0.3.4" }
]

# This section is considered when running `cargo deny check sources`.
Expand Down
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### Improve

* Update dependencies [#508](https://github.com/Riey/kime/issues/508)

## 2.5.5

### Improve
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

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

2 changes: 1 addition & 1 deletion src/engine/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ bitflags = "1.2.1"
enum-map = "1.0.0"
enumset = { version = "1.0.4", features = ["serde"] }
serde = { version = "1.0.118", features = ["derive"] }
strum = { version = "0.20.0", features = ["derive"] }
strum = { version = "0.21.0", features = ["derive"] }
2 changes: 1 addition & 1 deletion src/frontends/xim/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ xim = { version = "0.1.1", default-features = false, features = ["x11rb-server",
# xim = { path = "../../../../xim-rs", default-features = false, features = ["x11rb-server", "x11rb-xcb"] }

ahash = "0.7.0"
cairo-rs = { version = "0.9.1", features = ["xcb"] }
cairo-rs = { version = "0.14.1", features = ["xcb"] }
log = "0.4.11"
x11rb = { version = "0.8.0", features = ["render"] }
pico-args = "0.4.0"
8 changes: 4 additions & 4 deletions src/frontends/xim/src/pe_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ impl PeWindow {
size.0 as _,
size.1 as _,
)
.unwrap();
.expect("Create XCB Surface");

conn.map_window(preedit_window)?.check()?;

conn.flush()?;

let cr = cairo::Context::new(&surface);
let cr = cairo::Context::new(&surface).expect("Create Cairo Context");

cr.select_font_face(&font, cairo::FontSlant::Normal, cairo::FontWeight::Normal);
cr.set_font_size(font_size);
Expand Down Expand Up @@ -138,12 +138,12 @@ impl PeWindow {
fn redraw(&mut self) {
log::trace!("Redraw: {}", self.preedit);
self.cr.set_source_rgb(1.0, 1.0, 1.0);
self.cr.paint();
self.cr.paint().expect("Cairo paint");

if !self.preedit.is_empty() {
self.cr.set_source_rgb(0.0, 0.0, 0.0);
self.cr.move_to(self.text_pos.0, self.text_pos.1);
self.cr.show_text(&self.preedit);
self.cr.show_text(&self.preedit).expect("Cairo show text");
}

self.surface.flush();
Expand Down
2 changes: 1 addition & 1 deletion src/tools/check/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ kime-engine-cffi = { path = "../../engine/cffi" }
kime-engine-core = { path = "../../engine/core" }
pad = "0.1.6"
serde_yaml = "0.8.17"
strum = { version = "0.20.0", features = ["derive"] }
strum = { version = "0.21.0", features = ["derive"] }
xdg = "2.2.0"

0 comments on commit 34ddeaf

Please sign in to comment.