Skip to content

krruzic/rustofi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rustofi

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.

Usage

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::components::*;
use rustofi::{AppPage, RustofiResult};

Example

Simple

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

Todo App

A more complicated example todo_app: A persistent Todo List that can

  • create new Todos
  • delete Todos
  • mark Todos as finished
git clone https://github.com/krruzic/rustofi
cd rustofi
cargo run --example todo_app

About

Rust UI-ish library using rofi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages