ircmsgprs 0.2.1

A simple library for parsing IRC protocol messages.
Documentation
  • Coverage
  • 0%
    0 out of 12 items documented0 out of 4 items with examples
  • Size
  • Source code size: 9.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.59 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • diath/ircmsgprs
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • diath

ircmsgprs

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>,
}

Usage

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

License

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