Skip to content

Commit df25798

Browse files
committed
update project
1 parent 70688d9 commit df25798

File tree

7 files changed

+169
-197
lines changed

7 files changed

+169
-197
lines changed

Cargo.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "mprober"
3-
version = "0.11.0-beta.9"
3+
version = "0.11.0-beta.10"
44
authors = ["Magic Len <len@magiclen.org>"]
5-
edition = "2018"
5+
edition = "2021"
66
repository = "https://github.com/magiclen/m-prober"
77
homepage = "https://magiclen.org/m-prober"
88
keywords = ["probe", "mprober", "m-prober", "linux", "monitor"]
@@ -19,14 +19,13 @@ codegen-units = 1
1919
[dependencies]
2020
mprober-lib = "0.1"
2121

22-
clap = "2.33.1"
22+
clap = "3.1.6"
2323
concat-with = "0.2"
2424
terminal_size = "0.1"
2525

26-
validators = "0.23"
2726
byte-unit = "4"
2827
termcolor = "1"
29-
getch = "0.2"
28+
getch = "0.3"
3029
once_cell = "1"
3130

3231
rand = "0.8"
@@ -45,7 +44,7 @@ rocket-json-response = "0.6"
4544
rocket-include-static-resources = { version = "0.10", features = ["cache"] }
4645
rocket-include-handlebars = "0.13"
4746

48-
[dependencies.validators-derive]
49-
version = "0.23"
47+
[dependencies.validators]
48+
version = "0.24"
5049
default-features = false
51-
features = ["unsigned_integer", "number"]
50+
features = ["derive", "unsigned_integer", "number"]

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,23 @@ mprober benchmark --enable-memory # Benchmark the memory
7070
USAGE:
7171
mprober [SUBCOMMAND]
7272
73-
FLAGS:
74-
-h, --help Prints help information
75-
-V, --version Prints version information
73+
OPTIONS:
74+
-h, --help Print help information
75+
-V, --version Print version information
7676
7777
SUBCOMMANDS:
78-
hostname Shows the hostname
79-
kernel Shows the kernel version
80-
uptime Shows the uptime
81-
time Shows the RTC (UTC) date and time
82-
cpu Shows CPU stats
83-
memory Shows memory stats
84-
network Shows network stats
85-
volume Shows volume stats
86-
process Shows process stats
87-
web Starts a HTTP service to monitor this computer
88-
benchmark Runs benchmarks to measure the performance of this environment
89-
help Prints this message or the help of the given subcommand(s)
78+
hostname Show the hostname
79+
kernel Show the kernel version
80+
uptime Show the uptime
81+
time Show the RTC (UTC) date and time
82+
cpu Show CPU stats
83+
memory Show memory stats
84+
network Show network stats
85+
volume Show volume stats
86+
process Show process stats
87+
web Start a HTTP service to monitor this computer
88+
benchmark Run benchmarks to measure the performance of this environment
89+
help Print this message or the help of the given subcommand(s)
9090
```
9191

9292
## Requirements

src/benchmark/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ use std::path::Path;
1010
use std::rc::Rc;
1111
use std::time::{Duration, SystemTime};
1212

13-
use crate::mprober_lib::*;
13+
use mprober_lib::*;
1414

15-
use crate::byte_unit::{Byte, ByteUnit};
16-
use crate::rand::{self, Rng};
15+
use byte_unit::{Byte, ByteUnit};
16+
use rand::{self, Rng};
1717

1818
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
1919
pub enum BenchmarkLog {

src/lib.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
1-
extern crate mprober_lib;
2-
3-
extern crate byte_unit;
4-
5-
#[macro_use]
6-
extern crate validators_derive;
7-
8-
extern crate validators;
9-
10-
extern crate once_cell;
11-
12-
#[macro_use]
13-
extern crate serde_json;
14-
15-
extern crate chrono;
16-
extern crate rand;
17-
extern crate regex;
18-
extern crate users;
19-
201
#[macro_use]
212
extern crate rocket;
223

23-
#[macro_use]
24-
extern crate rocket_simple_authorization;
25-
26-
extern crate rocket_cache_response;
27-
extern crate rocket_json_response;
28-
294
#[macro_use]
305
extern crate rocket_include_static_resources;
316

0 commit comments

Comments
 (0)