Registry / other / gio-sys

gio-sys

JSON →
library0.22.0rscratesunverified

FFI bindings to libgio-2.0 for Rust, enabling access to GLib I/O and networking APIs.

# Cargo.toml [dependencies] gio-sys = "0.22.0"
INSTALL
IMPORT
SIG · GIO-SYS
G
gio-sys
otherrustv0.22.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GFile
use gio_sys::*;

Creates a GFile from a path using raw FFI bindings.

use gio_sys::GFile; fn main() { unsafe { let file = gio_sys::g_file_new_for_path(b"/tmp/test\0" as *const _ as *const i8); println!("Created GFile: {:?}", file); } }
Debug
Known issues
gotchaRequires libgio-2.0 system library installed
fix
Install glib development package (e.g., libglib2.0-dev on Debian/Ubuntu)
affects: >=0.0.0
gotchaAll functions are unsafe due to raw FFI
fix
Use safe wrappers from gio crate instead
affects: >=0.0.0
Upgrade
Version history
0.22.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gio-sys — cargo add gio-sys · libregistry