aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 577770d5c9f8cd1223c3cb73924b63c893299ea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#![feature(plugin, collections)]
#![plugin(regex_macros)]

extern crate regex;
#[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));