mirror of
https://github.com/svenstaro/miniserve
synced 2024-07-05 17:18:56 +00:00
Update to rust 2018 edition
This commit is contained in:
parent
db536a9889
commit
ead1bc899f
|
@ -8,6 +8,7 @@ license = "MIT"
|
|||
readme = "README.md"
|
||||
keywords = ["serve", "http-server", "static-files", "http", "server"]
|
||||
categories = ["command-line-utilities", "command-line-interface", "network-programming", "web-programming::http-server"]
|
||||
edition = "2018"
|
||||
|
||||
[badges]
|
||||
travis-ci = { repository = "svenstaro/miniserve", branch = "master" }
|
||||
|
|
11
src/main.rs
11
src/main.rs
|
@ -1,16 +1,7 @@
|
|||
extern crate actix;
|
||||
extern crate actix_web;
|
||||
extern crate base64;
|
||||
extern crate htmlescape;
|
||||
extern crate percent_encoding;
|
||||
extern crate simplelog;
|
||||
extern crate yansi;
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
|
||||
use actix_web::http::header;
|
||||
use actix_web::middleware::{Middleware, Response};
|
||||
use actix_web::{fs, middleware, server, App, HttpMessage, HttpRequest, HttpResponse, Result};
|
||||
use clap::{crate_authors, crate_description, crate_name, crate_version};
|
||||
use htmlescape::encode_minimal as escape_html_entity;
|
||||
use percent_encoding::{utf8_percent_encode, DEFAULT_ENCODE_SET};
|
||||
use simplelog::{Config, LevelFilter, TermLogger};
|
||||
|
|
Loading…
Reference in New Issue
Block a user