The Rust async working group is currently actively discusing on ways to improve async/await. Niko Matsakis documented the main goals and ideas in the async vision document.
As part of the improved async ecosytem, users should be able to make use of
The Rust async working group is currently actively discusing on ways to improve async/await. Niko Matsakis documented the main goals and ideas in the async vision document.
As part of the improved async ecosytem, users should be able to make use of
# Build an statically linked rustc (with host=x86_64-unknown-linux-musl) | |
# Last tested on: 9316ae515e2f8f3f497fb4f1559910c1eef2433d | |
# Usage: | |
# # patches must be in $(pwd) | |
# $ ls *.patch | |
# liblibc.patch rust.patch | |
# |
function fuzzyjump | |
# fuzzy cd in one of the ~/.marks bookmarks used by jump/autojump | |
# requires fzf installed and some links in ~/.marks | |
ls -l ~/.marks | awk '{print $9 $10 $11}'| sed -e '/^$/d' -e 's/\(->\)/|\1/' | column -s"|" -t | fzf | awk -F">" '{print $2}' | read -l fzf_local_result | |
if test -d $fzf_local_result | |
cd $fzf_local_result | |
else | |
echo "Directory does not exist $fzf_local_result" | |
end |
extern crate regex; | |
use std::io::{Write, stderr}; | |
use regex::{Regex, Captures}; | |
type Error = Box<::std::error::Error + Send + Sync>; | |
fn captures<'t>(pat: &str, txt: &'t str) -> Result<Vec<Captures<'t>>, Error> { | |
let re = try!(Regex::new(pat)); |
#!/bin/bash | |
# THIS IS A GIANT HACK | |
# if you think this would be a good idea if it weren't so terrible, go read https://github.com/rust-lang/rfcs/pull/1133 | |
set -e | |
# Parse args | |
for i in "$@" | |
do |
//! Chain macro in Rust | |
//! | |
//! A typical usage is to avoid nested match expressions. | |
//! | |
//! Supports: | |
//! - Pattern matching | |
//! - Or expressions (A | B => ...) | |
//! - Guarded statements (x if <cond> => ...) | |
//! - Implicit else (requires all arms to return same type) |