Use Rust 2018 Edition
This commit is contained in:
parent
87eaed9c82
commit
eb5d206dd9
4 changed files with 4 additions and 18 deletions
|
@ -2,6 +2,7 @@
|
||||||
name = "webmetro"
|
name = "webmetro"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
authors = ["Tangent 128 <Tangent128@gmail.com>"]
|
authors = ["Tangent 128 <Tangent128@gmail.com>"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytes = "0.4.10"
|
bytes = "0.4.10"
|
||||||
|
|
|
@ -24,7 +24,8 @@ use hyper::{
|
||||||
};
|
};
|
||||||
use warp::{
|
use warp::{
|
||||||
self,
|
self,
|
||||||
Filter
|
Filter,
|
||||||
|
path
|
||||||
};
|
};
|
||||||
use weak_table::{
|
use weak_table::{
|
||||||
WeakValueHashMap
|
WeakValueHashMap
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
|
|
||||||
extern crate bytes;
|
|
||||||
extern crate futures;
|
|
||||||
extern crate odds;
|
|
||||||
extern crate tokio;
|
|
||||||
|
|
||||||
pub mod ebml;
|
pub mod ebml;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod iterator;
|
pub mod iterator;
|
||||||
|
|
13
src/main.rs
13
src/main.rs
|
@ -1,18 +1,7 @@
|
||||||
extern crate bytes;
|
|
||||||
#[macro_use] extern crate clap;
|
|
||||||
extern crate futures;
|
|
||||||
extern crate http;
|
|
||||||
extern crate hyper;
|
|
||||||
extern crate tokio;
|
|
||||||
extern crate tokio_codec;
|
|
||||||
extern crate tokio_io;
|
|
||||||
#[macro_use] extern crate warp;
|
|
||||||
extern crate weak_table;
|
|
||||||
extern crate webmetro;
|
|
||||||
|
|
||||||
mod commands;
|
mod commands;
|
||||||
|
|
||||||
use clap::{App, AppSettings};
|
use clap::{App, AppSettings, crate_version};
|
||||||
|
|
||||||
use crate::commands::{
|
use crate::commands::{
|
||||||
relay,
|
relay,
|
||||||
|
|
Loading…
Reference in a new issue