#irc #creation #helper #access #message-parser #api #easing

irc-rust

IRC Helper easing the access and creation of IRC Messages

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

#1240 in Parser implementations

Download history 3/week @ 2024-02-20 11/week @ 2024-02-27 14/week @ 2024-03-26 45/week @ 2024-04-02

59 downloads per month
Used in bot-rs-core

MIT license

55KB
1K SLoC

irc-rust

Build Workflow https://docs.rs/irc-rust/badge.svg crates.io Coverage Status

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"
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

~175KB