3个版本
0.1.2 | 2022年8月14日 |
---|---|
0.1.1 | 2022年8月14日 |
0.1.0 | 2022年8月14日 |
#653 in 认证
14KB
340 行
Shinemonitor-rs
Rust库,用于shinemonitor.com网站
(需要用户名和密码)
示例
use shinemonitor::ShineMonitorClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>>{
let client = ShineMonitorClient::default();
let res = client
.auth("johnsmith","temp123")
.await?
.pid()
.await?;
println!("Pid Json: {:?}",res);
Ok(())
}
Cargo.toml
shinemonitor = "0.1.0"
tokio = { version = "1", features = ["full"] }
依赖项
~9–22MB
~318K SLoC