#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

#11 in #rustyline

Download history 21/week @ 2024-07-28 10/week @ 2024-09-22 6/week @ 2024-09-29

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–14MB
~175K SLoC