Rockchip SoC System Information Dashboard Web API

High performance and low weight api server aim to Rockchip platform, and possible support other embedded system.

To contribute to Mars colony program, follow the guide below 👇

WIP

TODO

Getting Started

shell cargo install rk-dashboard-webapi rk-dashboard-webapi -c ./Server.toml

Running the development server.

shell cargo run

Usage

shell curl localhost:8888/temperatures

Test

export RUST_BACKTRACE=full # first

Unit Test maybe

cargo install cargo-nextest cargo nextest run --no-capture ${your_test_function_name}

Integrate Test

shell cargo test integration_test

Test with mock data

shell cargo test --features mock

Deployment

Build

Cross compile to armv7

```shell export PKGCONFIGPATH="/usr/lib/arm-linux-gnueabihf/pkgconfig" export PKGCONFIGALLOW_CROSS="true"

cargo build --release --target armv7-unknown-linux-gnueabihf ```

Cross compile to arm64

shell cargo build --target aarch64-unknown-linux-gnu

References

This program build with sysinfo and axum;

License

MIT