rofi_plugin_sys/lib.rs
1//! This crate provides raw FFI bindings to Rofi's C plugin interface,
2//! manually written from the headers in `/usr/include/rofi`.
3//!
4//! See [the examples folder] for examples on how to use this crate.
5//!
6//! These bindings are raw, `unsafe` and very low-level
7//! so if you just want to write a Rofi plugin
8//! you'll probably want an easier-to-use library instead,
9//! such as [rofi-mode](https://docs.rs/rofi-mode).
10//!
11//! Set `RUSTFLAGS="--cfg rofi_next"` when building
12//! to change the API to use unreleased Rofi features
13//! (as of 2025-01-08).
14//! Items only available when this is turned on will be marked
15//! “**Semver-exempt and only available with `cfg(rofi_next)`.**”
16//! in the documentation.
17//!
18//! [the examples folder]: https://github.com/SabrinaJewson/rofi-plugin-sys.rs/tree/main/examples
19
20pub use {cairo_sys, glib_sys};
21
22mod types;
23pub use types::*;
24
25mod mode_private;
26pub use mode_private::*;
27
28mod mode;
29pub use mode::*;
30
31pub mod icon_fetcher;
32
33pub mod helper;
34
35pub mod view;