diff options
author | Till Hoeppner | 2015-04-18 13:35:38 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-04-18 13:35:38 +0200 |
commit | bb94e44ed6ec5b55823270192c00904cbfb24b6b (patch) | |
tree | 4fad16b94a5ef93a2f268fef8382aa20c884746b /src/lib.rs | |
parent | 8b7500ea4c766ca96d2e65a8f19e595d6021f4fa (diff) | |
download | irsc-bb94e44ed6ec5b55823270192c00904cbfb24b6b.tar.gz irsc-bb94e44ed6ec5b55823270192c00904cbfb24b6b.tar.xz irsc-bb94e44ed6ec5b55823270192c00904cbfb24b6b.zip |
I forgot to keep track. Embarassing, huh?
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 24 |
1 files changed, 20 insertions, 4 deletions
@@ -1,14 +1,30 @@ -#![feature(globs, phase, slicing_syntax, macro_rules, unboxed_closures)] +#![feature(plugin, slicing_syntax, unboxed_closures)] +#![allow(unstable)] -#[phase(plugin)] -extern crate regex_macros; +#![plugin(regex_macros)] extern crate regex; -#[phase(plugin, link)] +#[macro_use] extern crate log; +extern crate eventual; + pub mod server; pub mod color; pub mod ident; pub mod callback; pub mod message; + +use std::io; +use std::result; + +#[derive(Debug)] +pub enum IrscError { + Io(io::Error), + AlreadyConnected, + NotConnected +} + +pub type Result<T> = result::Result<T, IrscError>; + +pub const DEBUG: bool = cfg!(not(ndebug)); |