1 stable release

1.0.1 Feb 26, 2024

#2841 in Parser implementations

MIT license

25KB
436 lines

snoop

snoop file format for rust

snoop is a rust library to parse, read and write files in snoop format.

License

For more details:

format

  • only the snoop format to implement your own reader or writer

parse

  • parser to parse bytes in snoop format

read

  • read from a reader like a file or a buf
  • read form a reader as stream an block until eof appears

write

  • write to a writer like a file or a buf

lib.rs:

snoop is a rust library to read and write files in snoop file format.

Example

the default case is to read from a snoop file.

$ cargo add snoop --features read

Then use the snoop reader on a file in main.rs:

feature flags

default features

  • parser: format parser

optional features

  • read: read from a reader like files or buf
  • write: write to a writer like files or buf
  • full: include parser, reader and writer

No runtime deps

Features