shadow31

u/shadow31


r/rust•

Sudhi Herle, Head of Android Platform Security, says in yesterday's Android Developer weekly video:

Over time we will continue to invest in Rust and see which system components are better off being written in Rust. We believe Rust will end up fundamentally making the platform safe for all of our users.

https://www.youtube.com/watch?v=MNkFSCRUk6E&feature=youtu.be&t=727

[Kudos to u/devsquid for finding this!](https://www.reddit.com/r/rust/comments/hisn3e/this_week_in_rust_345/fwjvy47/)

65349

r/rust•

I'll preface this by saying that I'm a newbie to Rust and so this is probably a simple issue. I'm trying to change the cargo new command to use a --vcs (git|hg) flag instead of --git and --hg. Here's the code I've added to src/bin/new.rs:

#[deriving(Show, PartialEq)]
enum VersionControl { Git, Hg, NoVcs }

impl<E, D: Decoder<E>> Decodable<D, E> for VersionControl {
    fn decode(d: &mut D) -> Result<VersionControl, E> {
        println!("hit");
        let s = d.read_str();
        println!("s: {}", s.is_ok());
        Ok(match try!(s).as_slice() {
            //"git" => VersionControl::Git,
            
23