newline-converter

newline-converter is a simple library used for converting the newline characters in strings between Windows \r\n and Unix \n style. It mainly serves as a backend for Rust Newline converter CLI tool.

Crates.io

Comparision of newline-wrangling methods

newline-converter (this crate)

string.replace

regex crate Regex::replace_all

fancy-regex crate Regex::replace_all

Look into benches/bench.rs for the comparision benchmarks.

MSRV

Minimum Supported Rust Version is 1.38.0.