eolify-0.1.1 has been yanked.
eolify
High-performance line ending normalization for Rust.
eolify is a lightweight, allocation-conscious library for normalizing end-of-line (EOL) sequences in large text streams or buffers. It’s designed for high-throughput processing pipelines, data ingestion systems, and cross-platform tooling where consistency and efficiency matter.
Features
- Fast and memory-efficient — optimized for bulk text processing
- Normalizes EOLs to a consistent format (
\r\nfor now) - Minimal dependencies — ideal for embedding in performance-critical code
- Handles mixed endings (
\n,\r\n,\r) gracefully - Built with large-scale text data and streaming I/O in mind
Current status
Currently supports: normalization to CRLF (\r\n) using a chunk based API or through a Read implementation.
Planned:
- LF (
\n) normalization WriteAsyncRead/AsyncWrite
Example
use crlf;
let text = "one\nline\r\ntwo\rthree";
let normalized = normalize_str;
assert_eq!;
License
MIT or Apache-2.0, at your option.