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 |
#123 in #binding
Used in 2 crates
205KB
3.5K
SLoC
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
- Example code: examples/linenoise_example.rs.
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
- Use fork from oldium/linenoise (when gcc:compile_library supports -l) : oldium/linenoise does not build on OSX as is,
- Split in -sys and normal library.
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