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.
pathis 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.
LocalTaskprovides idiomatic access to gio’sGTaskAPI, for instance by being generic over their value type, while not completely departing from the underlying C API.LocalTaskdoes not require its value to beSendandSyncand 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 theTasktype.- MemoryMonitor
v2_64 - PowerProfileMonitor
v2_70 Taskprovides idiomatic access to gio’sGTaskAPI, for instance by being generic over their value type, while not completely departing from the underlying C API.TaskisSendandSyncand requires its value to also beSendandSync, 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 theLocalTasktype.- 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-resourcesto generate compiled gresources to embed in binary with [resources_register_include].targetis 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