memory-safe-parser
Zero-copy parsing for semi-structured log-like text in Rust:
- stream lines over
&str/&[u8]or a memory-mapped file; &strfield views into the original line (no per-token heap strings);- optional
bumpaloarena for a small per-line AST when you want structured pointers without a global allocator party.
Licensed under MIT OR Apache-2.0.
Crate name vs import name
Cargo dependency:
= "0.1"
Rust import:
use ;
Docs on docs.rs after the first publish.
Quickstart
Run the mmap example against bundled sample data:
Parse an in-memory string without mmap:
use ;
let dialect = default;
for record in parse_log_stream
Before publishing to crates.io
-
Confirm the crate
nameis still free on crates.io. -
Replace
authors/repositoryinCargo.tomlif your Git repo URL or contact details differ. -
Dry run:
-
Publish:
See also the mmap safety notes in the MappedFile documentation in source.