[package]
name = "memspan"
version = "0.1.0"
edition = "2024"
repository = "https://github.com/al8n/memspan"
homepage = "https://github.com/al8n/memspan"
documentation = "https://docs.rs/memspan"
description = "SIMD-accelerated byte-class scanning for lexers and parsers. Backends: AVX-512, AVX2, SSE4.1, NEON, WASM SIMD128. no_std compatible."
license = "MIT OR Apache-2.0"
rust-version = "1.95.0"
keywords = ["memchr", "simd", "lexer", "parser", "bytes"]
categories = ["parsing", "text-processing", "no-std", "no-std::no-alloc"]
[lib]
bench = false
[[bench]]
path = "benches/skip_until.rs"
name = "skip_until"
harness = false
[[bench]]
path = "benches/skip_while.rs"
name = "skip_while"
harness = false
[[bench]]
path = "benches/skip_ascii_class.rs"
name = "skip_ascii_class"
harness = false
[[bench]]
path = "benches/skip_lexer_class.rs"
name = "skip_lexer_class"
harness = false
[[bench]]
path = "benches/skip_class_macro.rs"
name = "skip_class_macro"
harness = false
[features]
default = ["std"]
alloc = []
std = []
[dependencies]
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
criterion = "0.8"
[dev-dependencies]
memchr = "2"
[profile.bench]
opt-level = 3
debug = false
codegen-units = 1
lto = 'thin'
incremental = false
debug-assertions = false
overflow-checks = false
rpath = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(all_tests)',
'cfg(tarpaulin)',
'cfg(memspan_force_scalar)',
'cfg(memspan_disable_avx512)',
'cfg(memspan_disable_avx2)',
'cfg(memspan_disable_sse42)',
'cfg(memspan_disable_simd128)',
] }