This file contains 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
-----BEGIN CERTIFICATE----- | |
MIIFijCCA3KgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwSjELMAkGA1UEBhMCVVMx | |
EzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAoMCUludGVyVGVzdDESMBAGA1UE | |
AwwJSW50ZXJUZXN0MB4XDTIxMDcxOTE2MzQzN1oXDTMxMDcxNzE2MzQzN1owXjEL | |
MAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAoMCUludGVy | |
VGVzdDESMBAGA1UECwwJSW50ZXJUZXN0MRIwEAYDVQQDDAlJbnRlclRlc3QwggIi | |
MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC3T698k+4gvWIvxZjhmr/egxfs | |
GX3gpREofuNzLYOTLn9NmvJO5E9CjKJgZ8AR786gvFx6IkTMAr/pFyxE0MJQ87fH | |
WrVL5rj7lAhEapi+FN+Cinuz1d2Hi2Va+8C0zpRGJfdQ61ifFUTyb+3pL+yKWtms | |
gVYlJt6kcqlIhyuBq6mOJcTLBZA5crQ+YY8v27PlFCnu3dEo4WCYm+glqfRAAaAR |
This file contains 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 description | |
//! | |
//! ```rust | |
//! extern crate docexm; | |
//! ``` | |
pub mod other; |
This file contains 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(default_type_params)] | |
use std::hash::{hash,Hash,Hasher,Writer}; | |
struct MyWriterHasher; | |
impl Hasher<MyWriter> for MyWriterHasher { | |
fn hash<T: Hash<MyWriter>>(&self, value: &T) -> u64 { | |
let mut state = MyWriter { hash: 0 }; | |
value.hash(&mut state); | |
state.hash |
This file contains 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
unsafe { | |
let path = Path::new("/dev/urandom"); | |
let x = path.to_c_str(); | |
let flags = 0 | libc::O_RDONLY; | |
let mode = 0; | |
let mut fd = match libc::open(x.as_ptr() as *const i8, flags, mode) { | |
-1 => { | |
let en = os::errno(); | |
let stre = libc::strerror(en as i32); | |
fail!("open failed {}",std::string::raw::from_buf(stre as *const u8)); |
This file contains 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::mem; | |
#[repr(C)] | |
struct a_struct_in_a_c_header_t; | |
fn main() { | |
let mut test: a_struct_in_a_c_header_t = unsafe { mem::zeroed() }; | |
This file contains 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
[package] | |
name = "multi" | |
version = "0.0.1" | |
authors = ["bazz"] | |
[lib] | |
name="multi" |
This file contains 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
diff --git a/common.mk b/common.mk | |
index de5c7e9..eff3468 100644 | |
--- a/common.mk | |
+++ b/common.mk | |
@@ -83,6 +83,7 @@ XCB_CFLAGS := $(call cflags_for_lib, xcb) | |
XCB_CFLAGS += $(call cflags_for_lib, xcb-event) | |
XCB_LIBS := $(call ldflags_for_lib, xcb,xcb) | |
XCB_LIBS += $(call ldflags_for_lib, xcb-event,xcb-event) | |
+XCB_LIBS += $(call ldflags_for_lib, xcb-image,xcb-image) | |
ifeq ($(shell pkg-config --exists xcb-util 2>/dev/null || echo 1),1) |