Move to 2018 edition.

This commit is contained in:
2019-04-03 13:33:01 +02:00
parent ab4291e869
commit 4621490f58
4 changed files with 9 additions and 30 deletions

4
Cargo.lock generated
View File

@@ -143,7 +143,6 @@ dependencies = [
"humantime 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "humantime 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.89 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.89 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.89 (registry+https://github.com/rust-lang/crates.io-index)",
"stderrlog 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "stderrlog 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"structopt 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)", "structopt 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
"subprocess 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", "subprocess 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -298,6 +297,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "serde" name = "serde"
version = "1.0.89" version = "1.0.89"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"serde_derive 1.0.89 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]] [[package]]
name = "serde_derive" name = "serde_derive"

View File

@@ -2,15 +2,15 @@
name = "isp-uptime" name = "isp-uptime"
version = "0.1.0" version = "0.1.0"
authors = ["Anders Olsson <anders.e.olsson@gmail.com>"] authors = ["Anders Olsson <anders.e.olsson@gmail.com>"]
edition = "2018"
[dependencies] [dependencies]
chrono = "0.4" chrono = "0.4"
handlebars = { version = "1.0", features = ["no_dir_source"], default-features = false} handlebars = { version = "1.1", features = ["no_dir_source"], default-features = false}
humantime = "1.1" humantime = "1.2"
log = "0.4" log = "0.4"
stderrlog = "0.4" stderrlog = "0.4"
serde = "1.0" serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0"
structopt = "0.2" structopt = "0.2"
subprocess = "0.1" subprocess = "0.1"
toml = "0.5" toml = "0.5"

View File

@@ -1,17 +1,8 @@
extern crate chrono;
extern crate handlebars;
extern crate humantime;
#[macro_use]
extern crate log;
extern crate stderrlog;
#[macro_use]
extern crate serde_derive;
extern crate subprocess;
extern crate toml;
use std::collections::HashMap; use std::collections::HashMap;
use log::Level::Debug; use log::Level::Debug;
use log::{debug, info, log_enabled};
use serde::Deserialize;
use subprocess::Exec; use subprocess::Exec;
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]

View File

@@ -1,17 +1,3 @@
extern crate chrono;
extern crate handlebars;
extern crate humantime;
#[macro_use]
extern crate log;
extern crate stderrlog;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate structopt;
extern crate isp_uptime;
extern crate subprocess;
extern crate toml;
use std::fs; use std::fs;
use std::io::{self, Read, Write}; use std::io::{self, Read, Write};
use std::path::PathBuf; use std::path::PathBuf;