1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-10 11:10:26 +02:00

update for rust 2018

This commit is contained in:
liv 2019-01-09 20:07:19 +01:00
parent 1bb5df9dd2
commit a0d21020df
2 changed files with 3 additions and 10 deletions

View File

@ -2,6 +2,7 @@
name = "rustlings" name = "rustlings"
version = "0.1.0" version = "0.1.0"
authors = ["olivia <olivia@fastmail.com>"] authors = ["olivia <olivia@fastmail.com>"]
edition = "2018"
[dependencies] [dependencies]
clap = "2.32.0" clap = "2.32.0"

View File

@ -1,21 +1,13 @@
#[macro_use] use clap::{App, Arg, SubCommand, crate_version};
extern crate clap;
extern crate console;
extern crate indicatif;
extern crate syntect;
extern crate notify;
use clap::{App, Arg, SubCommand};
use console::{style, Emoji}; use console::{style, Emoji};
use indicatif::ProgressBar; use indicatif::ProgressBar;
use syntect::easy::HighlightFile; use syntect::easy::HighlightFile;
use syntect::parsing::SyntaxSet; use syntect::parsing::SyntaxSet;
use syntect::highlighting::{ThemeSet, Style}; use syntect::highlighting::{ThemeSet, Style};
use syntect::util::{as_24_bit_terminal_escaped, LinesWithEndings}; use syntect::util::{as_24_bit_terminal_escaped};
use std::fs::remove_file; use std::fs::remove_file;
use std::io::BufRead; use std::io::BufRead;
use std::process::Command; use std::process::Command;
use std::fs::read_to_string;
use std::sync::mpsc::channel; use std::sync::mpsc::channel;
use std::time::Duration; use std::time::Duration;
use notify::DebouncedEvent; use notify::DebouncedEvent;