Expand description
Rust GIO bindings
Rust bindings and wrappers for GIO, part of gtk-rs-core.
GIO 2.48 is the lowest supported version for the underlying library.
Minimum supported Rust version
Currently, the minimum supported Rust version is 1.56.0
.
Documentation
Using
We recommend using crates from crates.io, as demonstrated here.
If you want to track the bleeding edge, use the git dependency instead:
[dependencies]
gio = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "gio" }
Avoid mixing versioned and git crates like this:
# This will not compile
[dependencies]
gio = "0.13"
gio = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "gio" }
See Also
License
gio is available under the MIT License, please refer to it.
Re-exports
Modules
- Traits and essential types intended for blanket imports.
Macros
- Include gresources generated with compile_resources and register with glib.
path
is relative toOUTDIR
.
Structs
- DebugController
v2_72
- DebugControllerDBus
v2_72
- DesktopAppInfoNon-Windows and non-macOS
- The implementation of an
IOExtensionPoint
. - An extension point provides a mechanism to extend the functionality of a library or application. Each extension point is identified by a name, and it may optionally require that any implementation must be of a certain type.
- Builder for extension points.
LocalTask
provides idiomatic access to gio’sGTask
API, for instance by being generic over their value type, while not completely departing from the underlying C API.LocalTask
does not require its value to beSend
andSync
and thus is useful to to implement gio style asynchronous tasks that run in the glib main loop. If you need to run tasks in threads see theTask
type.- MemoryMonitor
v2_64
- PowerProfileMonitor
v2_70
Task
provides idiomatic access to gio’sGTask
API, for instance by being generic over their value type, while not completely departing from the underlying C API.Task
isSend
andSync
and requires its value to also beSend
andSync
, thus is useful to to implement gio style asynchronous tasks that run in threads. If you need to only run tasks in glib main loop see theLocalTask
type.- UnixFDListUnix
- UnixInputStreamUnix
- UnixMountEntryUnix and
v2_54
- UnixMountPointUnix and
v2_54
- UnixOutputStreamUnix
Enums
- TlsProtocolVersion
v2_70
- TlsRehandshakeModeDeprecated
Statics
- VOLUME_IDENTIFIER_KIND_HAL_UDIDeprecated
Functions
- Call from build script to run
glib-compile-resources
to generate compiled gresources to embed in binary with [resources_register_include].target
is relative toOUT_DIR
. - dbus_is_error_name
v2_70
- unix_is_system_device_pathUnix and
v2_56
- unix_is_system_fs_typeUnix and
v2_56