14 releases
0.4.0 | Jul 13, 2021 |
---|---|
0.3.3 | Mar 26, 2021 |
0.3.2 | Sep 9, 2020 |
0.2.1 | Jun 8, 2020 |
0.1.5 | Mar 16, 2020 |
#2350 in Parser implementations
57 downloads per month
Used in bot-rs-core
55KB
1K
SLoC
irc-rust
IRC Helper easing the access and creation of IRC Messages. Minimum supported rust version (MRSV) is 1.40.0.
Github-actions runs build
, check
, fmt
, clippy
and test
against the latest stable, nightly and 1.40.0 rust toolchains.
Table of Contents
Installation
Requirements:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
.rustup.rs | sh
Installation:
- Add to
Cargo.toml
:
[dependencies]
irc-rust = "0.4"
- Or use
cargo edit
to get the latest every time:
cargo install cargo-edit
cargo add irc-rust # In your project root
Basic Usage
use irc_rust::Message;
fn main() {
let message = Message::from("@key1=value1;key2=value2 :name!user@host CMD param1 param2 :trailing");
assert_eq!(message.to_string(), "@key1=value1;key2=value2 :name!user@host CMD param1 param2 :trailing");
}
Benchmarks
Benchmark results are uploaded to github-pages automatically on push to master: https://moblaa.github.io/irc_rust/dev/bench/
The code for the benchmarks is located in the bench subdirectory.
Contributions
If you have any suggestion may it be refactorings of the code or benchmarks, have a feature request or something else, feel free to open an issue or pull request so we can discuss.
This is my first open source library, so I'm also open for advise on how to manage this repository.
Dependencies
~165KB