ibus-dl 0.1.0

Loads IBus at runtime
Documentation
  • Coverage
  • 5.04%
    7 out of 139 items documented1 out of 10 items with examples
  • Size
  • Source code size: 27.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ArturKovacs/ibus-dl
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ArturKovacs

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`