nacos

Crates.ionacos
lib.rsnacos
version0.0.1
sourcesrc
created_at2021-03-12 06:09:12.28093
updated_at2021-03-12 06:09:12.28093
descriptionA rust client for operating nacos
homepagehttps://crates.io/crates/nacos-rs
repositoryhttps://github.com/shonenada/nacos-rs
max_upload_size
id367574
size52,512
shonenada (shonenada)

documentation

README

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(())
}
Commit count: 42

cargo fmt