aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6d0b42d..577770d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,14 +1,27 @@
-#![feature(globs, phase, slicing_syntax, macro_rules, unboxed_closures)]
+#![feature(plugin, collections)]
+#![plugin(regex_macros)]
-#[phase(plugin)]
-extern crate 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 event;
+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));