Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zonyitoo/irc-rs
IRC library for Rust
https://github.com/zonyitoo/irc-rs
Last synced: 3 months ago
JSON representation
IRC library for Rust
- Host: GitHub
- URL: https://github.com/zonyitoo/irc-rs
- Owner: zonyitoo
- License: mit
- Created: 2015-08-31T20:49:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-06T17:12:41.000Z (over 9 years ago)
- Last Synced: 2023-04-09T22:19:26.535Z (almost 2 years ago)
- Language: Rust
- Size: 191 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IRC-rs
[![Build Status](https://img.shields.io/travis/zonyitoo/irc-rs.svg)](https://travis-ci.org/zonyitoo/irc-rs)
[![License](https://img.shields.io/github/license/zonyitoo/irc-rs.svg)](https://github.com/zonyitoo/irc-rs)IRC library for Rust
## Usage
### Serialization and Deserialization
```rust
extern crate irc;use irc::protocol::{Message, Body, IrcMessage};
use irc::protocol::command::PrivmsgCommand;fn main() {
let data = ":[email protected] PRIVMSG #rust :Ok, thanks guys. :)";
let parsed_msg = Message::from_str(data).unwrap();let privmsg = PrivmsgCommand::new("#rust", "Ok, thanks guys. :)");
let expected_msg = Message::new(Some("[email protected]"), Body::command(privmsg));assert_eq!(expected_msg, parsed_msg);
println!("{}", expected_msg);
}
```## TODOs
- [ ] Basically support [RFC2812](https://tools.ietf.org/html/rfc2812)
- [ ] API with validation
- [ ] Supports for clients and servers
- [ ] Sample clients and server implementation