zung_parsers

Data Format Parsing in Rust

2 releases

0.1.1 Oct 10, 2024
0.1.0 Oct 10, 2024

#799 in Algorithms

Download history 98/week @ 2024-10-04 158/week @ 2024-10-11

256 downloads per month
Used in zung

MIT license

79KB
1.5K SLoC

Zung Parsers - Data Format Parsing in Rust

This Library consists of varouis feature-full (on going) data format parsers implemented in rust. Each project is separated out in different modules as listed out in Table of Contents below.

Zung Family

This library is part of the zung family. Install the zung binary with cargo install zung to try out some of the features of this library.

Disclaimer

This library is intended for learning purposes only. While I will do my best to write the most professional code I can (with my limited coding knowledge), it is not my intention for this library to be used in any production environment.

Ateast not yet...

Table of Contents

Bencode

Encode and decode data in the Bencode format.

Bencode is a simple binary encoding format used in various contexts, most notably in BitTorrent. This type provides functionality to encode Rust data structures into Bencode format and decode Bencode strings into Rust data structures or json or yaml. See the implemented methods for more information,

Features

  • Full serde support.
  • Good error reporting (I tried).
  • Value implementation to reprasent parsed bencode data in rust data types.

Usage

See the docs for how to use each module of this library.

Dependencies

~3.5–5MB
~94K SLoC