Crates.io | rustofi |
lib.rs | rustofi |
version | 0.2.2 |
source | src |
created_at | 2019-11-15 09:00:48.027781 |
updated_at | 2019-11-19 08:58:32.621716 |
description | Library to build simple 'Rofi User Interface' applications |
homepage | https://github.com/krruzic/rustofi |
repository | https://github.com/krruzic/rustofi |
max_upload_size | |
id | 181487 |
size | 55,550 |
Rustofi is a library for building RUI (Rofi User Interface) applications. It supports getting user selection, user entry and can run associated callbacks on item selection.
Add this to your Cargo.toml
[dependencies]
rustofi = "0.2.2"
then to use in your Rust 2018 application you'll probably want these imports
use rustofi::{AppRoot, RustofiOption, RustofiOptionType};
use rustofi::window::{Window, Location};
The example simple
just displays a rofi window in a loop and returns the text selected.
git clone https://github.com/krruzic/rustofi
cd rustofi
cargo run --example simple
A more complicated example todo_app
is a persistent Todo List that can
git clone https://github.com/krruzic/rustofi
cd rustofi
cargo run --example todo_app