#irc-v3 #protocols #rfc1459

irctokens

RFC1459 and IRCv3 protocol tokeniser

4 releases

0.1.3 Apr 8, 2023
0.1.2 Mar 31, 2023
0.1.1 Mar 23, 2023
0.1.0 Mar 23, 2023

#7 in #irc-v3

39 downloads per month

MIT license

11KB
184 lines

irctokens-rs

crates.io docs.rs

RFC1459 and IRCv3 protocol tokeniser library for Rust


lib.rs:

usage

tokenisation

let bytes = b"@id=123 :jess!~jess@hostname PRIVMSG #chat :hello there!";
let line = irctokens::Line::tokenise(bytes).unwrap();
println!("{:?}", line.tags);
println!("{:?}", line.source);
println!("{}", line.command);
println!("{:?}", line.arguments);

No runtime deps