1 unstable release

0.0.1 Mar 12, 2021

#12 in #heavy

21 downloads per month

MIT license

23KB
655 lines

nacos-rs

A Rust clinet for operating Nacos.

This project is heavy under development.

Quick Guide

use nacos_core::NacosClient;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let client = NacosClient::new("http", "localhost", 8848);
    let namespace_client = client.namespace_client();
    let namespaces = namespace_client.list_namespaces().await?;
    for ns in namespaces.iter() {
        println!("{} {}", ns.namespace, ns.namespace_show_name);
    }
    Ok(())
}

Dependencies

~7–19MB
~295K SLoC