On Linux and Mac OS X, this library allows you to access readline() and add_history(). On non-Linux/Mac OS X, it provides the same functionality (within reason) as readline(), and shims add_history().
To add to a project
[dependencies]
readline-sys = "0.0.1"