ibus-dl

Crates.ioibus-dl
lib.rsibus-dl
version0.1.0
sourcesrc
created_at2021-12-21 19:04:57.421812
updated_at2021-12-21 19:04:57.421812
descriptionLoads IBus at runtime
homepage
repositoryhttps://github.com/ArturKovacs/ibus-dl
max_upload_size
id501296
size27,118
Artúr Kovács (ArturKovacs)

documentation

README

ibus-dl

This crate provides an unsafe interface to the ibus library installed to the system where it is executed. The ibus shared object is located and loaded at runtime, there shouldn't be any need for any complie time action.

Note that the interface that this crate exposes is limited, so feel free to make a PR if it's missing a function you need.

Development

The code in this crate is mostly hand written, based on the output from bindgen executed as follows.

// wrapper.h
#include <ibus.h>
bindgen wrapper.h -o bindings.rs --opaque-type _IBus[A-Z].* --allowlist-function ibus_.* -- `pkg-config --cflags ibus-1.0`
Commit count: 6

cargo fmt