Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bynect/tmi-parser
A simple, dependency-less library for parsing IRC-based TMI message
https://github.com/bynect/tmi-parser
crates-io dependency-less irc irc-messages irc-parsing-library message-parser message-parsing no-dependencies rust rust-crate rust-library tmi
Last synced: about 2 months ago
JSON representation
A simple, dependency-less library for parsing IRC-based TMI message
- Host: GitHub
- URL: https://github.com/bynect/tmi-parser
- Owner: bynect
- License: mit
- Created: 2021-01-20T22:17:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-22T20:32:57.000Z (almost 4 years ago)
- Last Synced: 2024-10-31T11:52:34.034Z (2 months ago)
- Topics: crates-io, dependency-less, irc, irc-messages, irc-parsing-library, message-parser, message-parsing, no-dependencies, rust, rust-crate, rust-library, tmi
- Language: Rust
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tmi-parser
[![cratesio-badge](https://img.shields.io/crates/v/tmi-parser)](https://crates.io/crates/tmi-parser)
## Description
A simple, dependency-less library for parsing IRC-based TMI message.
This library is made with simplicity and performance in mind using only Rust's pattern matching.
Still __WIP__.
## Changelog
* Separate `Message` and `Tags` in separate modules.
* Implement a custom and more performant hasher for `Tags` map.
* Separate `TagValue::Number` and `TagValue::Color`.
## Known issues
* If fed with incorrect input, `Message::parse` may panic.
* `Message` tags are not validated.
* Single digit number `0` or `1` will be interpreted as Boolean `false` or `true`.
* Unparsing `Message` may return a string different from the original.
## License
Licensed under the terms of the MIT license.