This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_export] | |
macro_rules! retry { | |
( @create_multiple_runner $timeout:expr, $started_at:expr, $( $name:ident: $type:ty => $block:expr ),+ ) => { | |
{ | |
let resources = Resources { | |
$( | |
$name: retry!(@create_runner $timeout, $started_at, $block) | |
),+ | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# servers to auto connect | |
servers: | |
- addr: irc.mozilla.org | |
port: 6667 | |
hostname: freenode | |
colors: | |
user_msg: | |
fg: black | |
bg: default |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug, Deserialize)] | |
#[serde(default)] | |
pub struct Theme { | |
/// Colors used to highlight nicks | |
pub nick_colors: [u8; 13], | |
pub clear: Style, | |
pub user_msg: Style, | |
pub err_msg: Style, | |
pub topic: Style, | |
pub cursor: Style, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::sync::{Arc, Mutex}; | |
use std::sync::mpsc::SyncSender; | |
use std::marker::PhantomData; | |
use iron::prelude::*; | |
use iron::{BeforeMiddleware, typemap, Request}; | |
use workers::MetricWriterCommand; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub mod container; | |
pub mod stack_view; | |
pub mod label; | |
pub use self::container::Container; | |
pub use self::stack_view::StackView; | |
pub use self::label::Label; | |
use ui::geom::*; | |
use ui::renderer::Renderer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Worker)] | |
struct StatsWorker; | |
impl StatsWorker { | |
#![command] | |
fn write(&mut self) { | |
// Write some data to redis | |
} | |
#![command] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![crate_type="dylib"] | |
#![feature(quote, plugin_registrar, rustc_private)] | |
extern crate slave; | |
extern crate proc_macro; | |
extern crate rustc_plugin; | |
extern crate syntax; | |
use rustc_plugin::Registry; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(prelude_import)] | |
#![no_std] | |
#![feature(plugin)] | |
#![plugin(slave_codegen)] | |
#[prelude_import] | |
use std::prelude::v1::*; | |
#[macro_use] | |
extern crate std as std; | |
extern crate slave; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for event in self.events.poll_iter() { | |
match event { | |
Event::Quit { .. } => self.running = false, | |
event => self.input.update(&self.events, event) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate cgmath; | |
extern crate specs; | |
#[macro_use] | |
extern crate gfx; | |
extern crate gfx_window_glutin; | |
extern crate glutin; | |
// Logging | |
#[macro_use] |