irc-rust

Crates.ioirc-rust
lib.rsirc-rust
version0.4.0
sourcesrc
created_at2020-03-02 21:01:52.645251
updated_at2021-07-13 13:45:38.146572
descriptionIRC Helper easing the access and creation of IRC Messages
homepagehttps://github.com/MoBlaa/irc_rust
repositoryhttps://github.com/MoBlaa/irc_rust
max_upload_size
id214596
size55,882
MoBlaa (MoBlaa)

documentation

https://docs.rs/irc_rust

README

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.

Commit count: 86

cargo fmt