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
11KB
184 lines
irctokens-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);