#rustyline #read-line #fork

yatima-rustyline

rustyline fork with Wasm support

2 unstable releases

0.2.0 Aug 22, 2022
0.1.0 May 16, 2022

#649 in WebAssembly

37 downloads per month

MIT license

435KB
11K SLoC

yatima-rustyLine

Rustyline with Wasm support

This project was forked from rustyline (Copyright 2015 Katsu Kawakami & Rustyline authors)


lib.rs:

Readline for Rust

This implementation is based on Antirez's Linenoise

Example

Usage

let mut rl = yatima_rustyline::Editor::<()>::new()?;
let readline = rl.readline(">> ");
match readline {
    Ok(line) => println!("Line: {:?}", line),
    Err(_) => println!("No input"),
}

Dependencies

~2–15MB
~171K SLoC