grafov/rust-playground

Cargo error on executing

Closed this issue · 1 comments

Snippet:

// -*- mode:rust;mode:rust-playground -*-
// snippet of code @ 2018-04-06 11:42:50

// === Rust Playground ===
// Execute the snippet with Ctl-Return
// Remove the snippet completely with its dir and all files M-x `rust-playground-rm`

fn main() {

    println!("Results:")

}

Error Message:

-*- mode: compilation; default-directory: "~/.emacs.d/rust-playground/at-2018-04-06-114250/" -*-
Compilation started at Fri Apr  6 11:42:51

cargo build
error: could not find `Cargo.toml` in `/home/bruno/.emacs.d/rust-playground/at-2018-04-06-114250` or any parent directory

Compilation exited abnormally with code 101 at Fri Apr  6 11:42:51

I ran in to this as well. I started playing around with the code, and ended up rewriting a lot of it, adding some features too, to make it generate a full cargo crate. I think it might still need a but of work, but its usable for me anyways. I'll put up a PR, but I'm new to contributing to open source, and not sure what the etiquette is on PR'ing major rewtites of other people's code. What I've got is here https://github.com/jasonrobot/rust-playground