#binding #cli #library

bin+lib linenoise-rust

Simple binding to lib linenoise (readline-like) in rust. linenoise is included.

18 releases

Uses old Rust 2015

0.2.1 Mar 5, 2018
0.2.0 Feb 22, 2016
0.1.15 Feb 11, 2016
0.1.14 Oct 21, 2015
0.0.3 Dec 13, 2014

#116 in #binding

24 downloads per month
Used in 2 crates

MIT license

205KB
3.5K SLoC

C++ 3K SLoC // 0.2% comments Rust 364 SLoC // 0.7% comments

Linenoise for rust

A minimal, zero-config, BSD licensed, readline replacement.

  • Original code from Antirez, cf antirez/linenoise.
  • Ported to rust by your humble servant.

How to add the dependency in Cargo

Add the following line to you project

linenoise-rust = "0.2.0"

Usage

Misc

Why is this library not named linenoise ?

The original linenoise library belongs to cmr/linenoise-rs for which I have sent some pull requests. However, I'm trying to maintain my own version as the stats tends to indicate my version is the de factor standard.

TODO

Contributors

Linenoise was also improved by these people. Thanks to them :)

  • Dan Spencer @nukep: Fixes for stable rust
  • Kalyanov Dmitry @dmitryvk: Memory Leak
  • Stacy Prowell: Support for history, using a custom version of linenoise
  • Chris Dawes @cmsd2: win32 and arango merge help
  • Bruno Ploumhans @Technici4n: fix build under MSVC

Dependencies