Move to 2018 edition.
This commit is contained in:
4
Cargo.lock
generated
4
Cargo.lock
generated
@@ -143,7 +143,6 @@ dependencies = [
|
||||
"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)",
|
||||
"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)",
|
||||
"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)",
|
||||
@@ -298,6 +297,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
name = "serde"
|
||||
version = "1.0.89"
|
||||
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]]
|
||||
name = "serde_derive"
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
name = "isp-uptime"
|
||||
version = "0.1.0"
|
||||
authors = ["Anders Olsson <anders.e.olsson@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
chrono = "0.4"
|
||||
handlebars = { version = "1.0", features = ["no_dir_source"], default-features = false}
|
||||
humantime = "1.1"
|
||||
handlebars = { version = "1.1", features = ["no_dir_source"], default-features = false}
|
||||
humantime = "1.2"
|
||||
log = "0.4"
|
||||
stderrlog = "0.4"
|
||||
serde = "1.0"
|
||||
serde_derive = "1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
structopt = "0.2"
|
||||
subprocess = "0.1"
|
||||
toml = "0.5"
|
||||
|
||||
13
src/lib.rs
13
src/lib.rs
@@ -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 log::Level::Debug;
|
||||
use log::{debug, info, log_enabled};
|
||||
use serde::Deserialize;
|
||||
use subprocess::Exec;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
||||
14
src/main.rs
14
src/main.rs
@@ -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::io::{self, Read, Write};
|
||||
use std::path::PathBuf;
|
||||
|
||||
Reference in New Issue
Block a user