Skip to content

rainbowflesh/sysinfo-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Base on your PC Architect

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

Cross compile

cargo build --target armv7-unknown-linux-gnueabihf
cargo build --target aarch64-unknown-linux-gnu
# or use cross-rs
cross build --target armv7-unknown-linux-gnueabihf
cross build --target aarch64-unknown-linux-gnu

Notice: Minimal GCC is 8.3.0.

Run

Run in develop

cargo run -- --help

Test

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

Contribute

WIP

About

HTTP server to fetch system information

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages