3 个版本
0.0.3 | 2023 年 7 月 4 日 |
---|---|
0.0.2 | 2023 年 6 月 30 日 |
0.0.1 | 2023 年 6 月 29 日 |
#403 在 HTTP 服务器
34KB
681 行
sysinfo-http
sysinfo-http
用于通过 http 获取系统信息。
支持的操作系统
它目前支持以下操作系统(按字母顺序排序)
- Linux
- 树莓派
- Rockchip-BSP
- Windows
您仍然可以在非支持的操作系统上运行 sysinfo-http
服务器,它将什么也不做,始终返回空值。您可以通过运行服务器后直接在浏览器中检查操作系统是否受支持
curl -X GET '127.0.0.1:8000/support'
rustc
的最低支持版本为 1.59。
使用方法
cargo install sysinfo-http
sysinfo-http --help
API
见 API.md
构建
git clone https://github.com/rainbowflesh/sysinfo-http.git
cd sysinfo-info
cargo build
在开发模式下运行
cargo run -- --help
测试
cargo test
# or use nextest
cargo nextest run --no-capture
贡献
进行中
依赖关系
~29–61MB
~1M SLoC