#irc #parser


A simple library for parsing IRC protocol messages

4 releases

✓ Uses Rust 2018 edition

0.2.1 Feb 13, 2020
0.2.0 Feb 8, 2020
0.1.1 Feb 7, 2020
0.1.0 Feb 7, 2020

#206 in Parser implementations

MIT license

189 lines


A simple Rust library that parses IRC protocol messages and turns them into the following struct:

#[derive(Default, Debug)]
pub struct Message {
    pub server: Option<String>,
    pub nick: Option<String>,
    pub user: Option<String>,
    pub host: Option<String>,
    pub command: String,
    pub params: Vec<String>,


let mut parser = parser::Parser::new();
let result = parser
    .parse(":nick!user@host COMMAND param1 param2 :trailing param with spaces")
println!("{}", result);


Licensed under the MIT license. See the license file for details.

No runtime deps