2 unstable releases

0.2.0 Aug 22, 2022
0.1.0 May 16, 2022

#734 in WebAssembly

Download history 1/week @ 2022-12-03 1/week @ 2022-12-10 2/week @ 2022-12-17 1/week @ 2022-12-24 1/week @ 2022-12-31 1/week @ 2023-01-07 4/week @ 2023-01-21 16/week @ 2023-01-28 57/week @ 2023-02-04 79/week @ 2023-02-11 89/week @ 2023-02-18 184/week @ 2023-02-25 318/week @ 2023-03-04 378/week @ 2023-03-11 70/week @ 2023-03-18

967 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"),
}
# Ok::<(), yatima_rustyline::error::ReadlineError>(())

Dependencies

~0.7–7.5MB
~129K SLoC