#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

#1027 in WebAssembly

Download history 5/week @ 2024-03-10 32/week @ 2024-03-31 44/week @ 2024-04-28 1/week @ 2024-05-05

194 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

~3–16MB
~172K SLoC