/ratchet

net_watcher developed using rust

Primary LanguageRust

Ratchet

clap

log4rs

rust-prometheus
Crate prometheus

lazy_static

git-version

reqwest

Crate serde Crate serde_yaml yaml-rust

Build

# build

$ cd github.com/wangfeiping/ratchet/

$ make

$ ./target/release/ratchet --version

Running

# running

$ cd ./target/release/

$ ./ratchet --log-level debug

$ curl http://127.0.0.1:8080/

$ curl http://127.0.0.1:8080/metrics

New package

# new

$ cargo new --lib common/ratchet_version
$ cargo new --lib common/prometheus
$ cargo new --lib common/logger
$ cargo new --lib watcher