1 stable release

1.0.1 Feb 26, 2024

#2328 in Parser implementations

Download history 223/week @ 2024-02-23 52/week @ 2024-03-01 19/week @ 2024-03-08 72/week @ 2024-03-15 19/week @ 2024-03-29

111 downloads per month

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