Skip to content

Commit

Permalink
update project
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Mar 19, 2022
1 parent 70688d9 commit df25798
Show file tree
Hide file tree
Showing 7 changed files with 169 additions and 197 deletions.
15 changes: 7 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "mprober"
version = "0.11.0-beta.9"
version = "0.11.0-beta.10"
authors = ["Magic Len <[email protected]>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/magiclen/m-prober"
homepage = "https://magiclen.org/m-prober"
keywords = ["probe", "mprober", "m-prober", "linux", "monitor"]
Expand All @@ -19,14 +19,13 @@ codegen-units = 1
[dependencies]
mprober-lib = "0.1"

clap = "2.33.1"
clap = "3.1.6"
concat-with = "0.2"
terminal_size = "0.1"

validators = "0.23"
byte-unit = "4"
termcolor = "1"
getch = "0.2"
getch = "0.3"
once_cell = "1"

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

[dependencies.validators-derive]
version = "0.23"
[dependencies.validators]
version = "0.24"
default-features = false
features = ["unsigned_integer", "number"]
features = ["derive", "unsigned_integer", "number"]
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,23 @@ mprober benchmark --enable-memory # Benchmark the memory
USAGE:
mprober [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-h, --help Print help information
-V, --version Print version information
SUBCOMMANDS:
hostname Shows the hostname
kernel Shows the kernel version
uptime Shows the uptime
time Shows the RTC (UTC) date and time
cpu Shows CPU stats
memory Shows memory stats
network Shows network stats
volume Shows volume stats
process Shows process stats
web Starts a HTTP service to monitor this computer
benchmark Runs benchmarks to measure the performance of this environment
help Prints this message or the help of the given subcommand(s)
hostname Show the hostname
kernel Show the kernel version
uptime Show the uptime
time Show the RTC (UTC) date and time
cpu Show CPU stats
memory Show memory stats
network Show network stats
volume Show volume stats
process Show process stats
web Start a HTTP service to monitor this computer
benchmark Run benchmarks to measure the performance of this environment
help Print this message or the help of the given subcommand(s)
```

## Requirements
Expand Down
6 changes: 3 additions & 3 deletions src/benchmark/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ use std::path::Path;
use std::rc::Rc;
use std::time::{Duration, SystemTime};

use crate::mprober_lib::*;
use mprober_lib::*;

use crate::byte_unit::{Byte, ByteUnit};
use crate::rand::{self, Rng};
use byte_unit::{Byte, ByteUnit};
use rand::{self, Rng};

#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub enum BenchmarkLog {
Expand Down
25 changes: 0 additions & 25 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
extern crate mprober_lib;

extern crate byte_unit;

#[macro_use]
extern crate validators_derive;

extern crate validators;

extern crate once_cell;

#[macro_use]
extern crate serde_json;

extern crate chrono;
extern crate rand;
extern crate regex;
extern crate users;

#[macro_use]
extern crate rocket;

#[macro_use]
extern crate rocket_simple_authorization;

extern crate rocket_cache_response;
extern crate rocket_json_response;

#[macro_use]
extern crate rocket_include_static_resources;

Expand Down
Loading

0 comments on commit df25798

Please sign in to comment.