1 unstable release

0.1.0 Sep 14, 2020

#307 in Profiling

MIT license

18KB
413 lines

zoomies

Zoomies is asynchronous DogStatsD client built using the Rust async_std.


lib.rs:

An Asynchronous Rust Client for interacting with DogStatsD

Usage

Use a ConfigBuilder to configure an asynchronous 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(())
}

Dependencies

~6–15MB
~191K SLoC