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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#![feature(plugin, custom_derive)] #![feature(question_mark)] #![plugin(serde_macros)] extern crate serde; extern crate serde_json; extern crate rustc_serialize; #[macro_use] extern crate log; extern crate env_logger; #[macro_use] extern crate error_chain; extern crate threadpool; extern crate redis; extern crate r2d2; extern crate r2d2_redis; extern crate rand; extern crate random_choice; extern crate libc; #[macro_use] extern crate json; extern crate chrono; #[macro_use] extern crate chan; extern crate chan_signal; mod server; mod job_handler; mod errors; mod job; mod utils; mod worker; pub use server::SidekiqServer; pub use job_handler::{PrinterHandlerFactory, ErrorHandlerFactory, JobHandlerFactory, JobHandler}; pub use errors::*;