Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Adapt to no longer renamed ffi crates
Browse files Browse the repository at this point in the history
  • Loading branch information
pentamassiv committed Jun 6, 2024
1 parent 6f9a456 commit a8f397b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ gtk = "0.18"
gio = "0.18"
shell-words = "1.0"
tempfile = "3"
gtk-layer-shell-sys = { path = "gtk-layer-shell-sys", version = "0.7" }
8 changes: 4 additions & 4 deletions gtk-layer-shell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]

[features]
default = []
v0_4 = ["ffi/v0_4"]
v0_5 = ["ffi/v0_5", "v0_4"]
v0_6 = ["ffi/v0_6", "v0_5"]
v0_4 = ["gtk-layer-shell-sys/v0_4"]
v0_5 = ["gtk-layer-shell-sys/v0_5", "v0_4"]
v0_6 = ["gtk-layer-shell-sys/v0_6", "v0_5"]

[dependencies]
libc.workspace = true
Expand All @@ -30,7 +30,7 @@ glib.workspace = true
glib-sys.workspace = true
gdk.workspace = true
gtk.workspace = true
ffi = { package = "gtk-layer-shell-sys", path = "../gtk-layer-shell-sys", version = "0.7" }
gtk-layer-shell-sys.workspace = true

[dev-dependencies]
gio.workspace = true
2 changes: 2 additions & 0 deletions gtk-layer-shell/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use gtk; // Required for the documentation to build without warnings
use gtk::prelude::IsA;

pub use gtk_layer_shell as ffi;

macro_rules! assert_initialized_main_thread {
() => {
if !::gtk::is_initialized_main_thread() {
Expand Down

0 comments on commit a8f397b

Please sign in to comment.