aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTill Hoeppner2015-04-18 13:35:38 +0200
committerTill Hoeppner2015-04-18 13:35:38 +0200
commitbb94e44ed6ec5b55823270192c00904cbfb24b6b (patch)
tree4fad16b94a5ef93a2f268fef8382aa20c884746b /src/lib.rs
parent8b7500ea4c766ca96d2e65a8f19e595d6021f4fa (diff)
downloadirsc-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.rs24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1c60750..7cf7c9d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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));