[package]
edition = "2021"
name = "eolify"
version = "0.4.2"
authors = ["Mark Swaanenburg"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
High-performance line ending normalization for Rust.
"""
homepage = "https://github.com/cygnus9/eolify"
documentation = "https://docs.rs/eolify"
readme = "README.md"
keywords = [
"eol",
"newline",
"line-endings",
"crlf",
"lf",
]
categories = [
"encoding",
"text-processing",
]
license = "MIT/Apache-2.0"
repository = "https://github.com/cygnus9/eolify"
[package.metadata."docs.rs"]
all-features = true
[features]
futures-io = [
"dep:futures-io",
"dep:pin-project-lite",
]
tokio = [
"dep:tokio",
"dep:pin-project-lite",
]
[lib]
name = "eolify"
path = "src/lib.rs"
[[example]]
name = "normalize_str"
path = "examples/normalize_str.rs"
[[example]]
name = "sync_file_convert"
path = "examples/sync_file_convert.rs"
[[example]]
name = "tokio_file_convert"
path = "examples/tokio_file_convert.rs"
required-features = ["tokio"]
[[test]]
name = "buffer_size"
path = "tests/buffer_size.rs"
[[test]]
name = "crlf_async_reader"
path = "tests/crlf_async_reader.rs"
[[test]]
name = "crlf_async_writer"
path = "tests/crlf_async_writer.rs"
[[test]]
name = "crlf_normalize"
path = "tests/crlf_normalize.rs"
[[test]]
name = "crlf_normalize_chunk"
path = "tests/crlf_normalize_chunk.rs"
[[test]]
name = "crlf_normalize_str"
path = "tests/crlf_normalize_str.rs"
[[test]]
name = "crlf_prop_test"
path = "tests/crlf_prop_test.rs"
[[test]]
name = "crlf_reader"
path = "tests/crlf_reader.rs"
[[test]]
name = "crlf_writer"
path = "tests/crlf_writer.rs"
[[test]]
name = "lf_async_reader"
path = "tests/lf_async_reader.rs"
[[test]]
name = "lf_async_writer"
path = "tests/lf_async_writer.rs"
[[test]]
name = "lf_normalize"
path = "tests/lf_normalize.rs"
[[test]]
name = "lf_normalize_chunk"
path = "tests/lf_normalize_chunk.rs"
[[test]]
name = "lf_normalize_str"
path = "tests/lf_normalize_str.rs"
[[test]]
name = "lf_prop_test"
path = "tests/lf_prop_test.rs"
[[test]]
name = "lf_reader"
path = "tests/lf_reader.rs"
[[test]]
name = "lf_writer"
path = "tests/lf_writer.rs"
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
[[bench]]
name = "to_dos"
path = "benches/to_dos.rs"
harness = false
[[bench]]
name = "to_unix"
path = "benches/to_unix.rs"
harness = false
[dependencies.futures-io]
version = "0.3.31"
optional = true
[dependencies.memchr]
version = "2.7"
[dependencies.pin-project-lite]
version = "0.2.16"
optional = true
[dependencies.tokio]
version = "1.48.0"
optional = true
default-features = false
[dev-dependencies.async-std]
version = "1.12"
features = ["attributes"]
[dev-dependencies.criterion]
version = "0.7"
[dev-dependencies.futures-util]
version = "0.3.31"
features = ["io"]
default-features = false
[dev-dependencies.newline-converter]
version = "0.3.0"
[dev-dependencies.newline_normalizer]
version = "0.1.6"
[dev-dependencies.proptest]
version = "1.8.0"
[dev-dependencies.regex]
version = "1.12.2"
[dev-dependencies.tokio]
version = "1.48.0"
features = [
"fs",
"io-util",
"macros",
"rt",
]
default-features = false