<commit_before># Linenoise for rust

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

- Original code from Antirez, cf [antirez/linenoise](https://github.com/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.1.7"
`

# Usage

- example code [src/linenoise.rs](src/linenoise.rs).
- [Api documentation](http://octplane.github.io/rust-linenoise/linenoise/index.html)

# Misc

## Why is this library not named linenoise ?

The original `linenoise` library belongs to [cmr/linenoise-rs](https://github.com/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](https://crates.io/search?q=linenoise) is the de factor standard.

#### TODO
- Use fork from [oldium/linenoise](oldium/linenoise) (when gcc:compile_library supports -l) : [oldium/linenoise](oldium/linenoise) does not build on OSX as is,
- Split in -sys and normal library.<commit_msg>Bump version in readme<commit_after># Linenoise for rust

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

- Original code from Antirez, cf [antirez/linenoise](https://github.com/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.1.8"
`

# Usage

- example code [src/linenoise.rs](src/linenoise.rs).
- [Api documentation](http://octplane.github.io/rust-linenoise/linenoise/index.html)

# Misc

## Why is this library not named linenoise ?

The original `linenoise` library belongs to [cmr/linenoise-rs](https://github.com/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](https://crates.io/search?q=linenoise) is the de factor standard.

#### TODO
- Use fork from [oldium/linenoise](oldium/linenoise) (when gcc:compile_library supports -l) : [oldium/linenoise](oldium/linenoise) does not build on OSX as is,
- Split in -sys and normal library.
{'fraction_non_alphanumeric': 0.11304757418747056, 'fraction_numerical': 0.002826189354686764, 'mean_word_length': 4.446153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3658011', 'n_tokens_mistral': 705, 'n_tokens_neox': 686, 'n_words': 228}