aboutsummaryrefslogtreecommitdiff
path: root/rust/chardev
diff options
context:
space:
mode:
Diffstat (limited to 'rust/chardev')
-rw-r--r--rust/chardev/Cargo.toml1
-rw-r--r--rust/chardev/meson.build2
-rw-r--r--rust/chardev/src/bindings.rs4
3 files changed, 6 insertions, 1 deletions
diff --git a/rust/chardev/Cargo.toml b/rust/chardev/Cargo.toml
index 3e77972..f105189 100644
--- a/rust/chardev/Cargo.toml
+++ b/rust/chardev/Cargo.toml
@@ -13,6 +13,7 @@ repository.workspace = true
rust-version.workspace = true
[dependencies]
+glib-sys = { workspace = true }
common = { path = "../common" }
bql = { path = "../bql" }
migration = { path = "../migration" }
diff --git a/rust/chardev/meson.build b/rust/chardev/meson.build
index e7ce02b..d365d8d 100644
--- a/rust/chardev/meson.build
+++ b/rust/chardev/meson.build
@@ -36,7 +36,7 @@ _chardev_rs = static_library(
override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'rust',
link_with: [_bql_rs, _migration_rs, _qom_rs, _util_rs],
- dependencies: [common_rs, qemu_macros],
+ dependencies: [glib_sys_rs, common_rs, qemu_macros],
)
chardev_rs = declare_dependency(link_with: [_chardev_rs], dependencies: [chardev, qemuutil])
diff --git a/rust/chardev/src/bindings.rs b/rust/chardev/src/bindings.rs
index 2d98026..c95dc89 100644
--- a/rust/chardev/src/bindings.rs
+++ b/rust/chardev/src/bindings.rs
@@ -19,6 +19,10 @@
)]
use common::Zeroable;
+use glib_sys::{
+ gboolean, guint, GArray, GHashTable, GHashTableIter, GIOCondition, GList, GMainContext,
+ GPollFD, GPtrArray, GQueue, GSList, GSource, GSourceFunc,
+};
#[cfg(MESON)]
include!("bindings.inc.rs");