diff options
Diffstat (limited to '')
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | src/main.rs | 11 |
2 files changed, 2 insertions, 10 deletions
@@ -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" } diff --git a/src/main.rs b/src/main.rs index 5806cab..8d54598 100644 --- a/src/main.rs +++ b/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}; |