#irc-v3 #protocols #tokeniser #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

#8 in #irc-v3

Download history 4/week @ 2024-02-26 61/week @ 2024-04-01

61 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