sysinfo-http

Crates.iosysinfo-http
lib.rssysinfo-http
version0.0.3
sourcesrc
created_at2023-06-29 16:14:15.411911
updated_at2023-07-04 07:57:12.873253
descriptionHTTP server to get system information
homepagehttps://github.com/rainbowflesh/sysinfo-http
repositoryhttps://github.com/rainbowflesh/sysinfo-http
max_upload_size
id903430
size117,639
是虹川肉 (rainbowflesh)

documentation

https://github.com/rainbowflesh/sysinfo-http/blob/develop/API.md

README

crates.io link documentation

sysinfo-http

sysinfo-http used to get a system's information through http.

Supported OSes

It currently supports the following OSes (alphabetically sorted):

  • Linux
  • Raspberry Pi
  • Rockchip-BSP
  • Windows

You can still run a sysinfo-http server on non-supported OSes, it'll simply do nothing and always return empty values. You can check in your browser directly if an OS is supported by run the server then:

curl -X GET '127.0.0.1:8000/support'

The minimum-supported version of rustc is 1.59.

Usage

cargo install sysinfo-http
sysinfo-http --help

API

See API.md

Build

git clone https://github.com/rainbowflesh/sysinfo-http.git
cd sysinfo-info
cargo build

Run in develop

cargo run -- --help

Test

cargo test
# or use nextest
cargo nextest run --no-capture

Contribute

WIP

Commit count: 24

cargo fmt