1 个不稳定版本
0.1.0 | 2020年9月14日 |
---|
#307 在 性能分析
18KB
413 行
zoomies
Zoomies 是使用 Rust async_std 构建的异步 DogStatsD 客户端。
lib.rs
:
一个用于与 DogStatsD 交互的异步 Rust 客户端
用法
使用 ConfigBuilder
配置一个异步 Client
。
use zoomies::{Client, ConfigBuilder};
#[async_std::main]
async fn main() -> std::io::Result<()> {
let config = ConfigBuilder::new()
.from_addr("127.0.0.1:10001".into())
.to_addr("MY_STATSD_HOST:PORT".into())
.namespace("chungus".into())
.finish();
let client = Client::with_config(config).await?;
Ok(())
}
依赖项
~6–15MB
~191K SLoC