Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shonenada/nacos-rs
https://github.com/shonenada/nacos-rs
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shonenada/nacos-rs
- Owner: shonenada
- License: mit
- Created: 2021-03-02T06:38:54.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T06:09:44.000Z (almost 4 years ago)
- Last Synced: 2024-09-17T12:21:36.727Z (4 months ago)
- Language: Rust
- Size: 49.8 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nacos-rs
========A Rust clinet for operating Nacos.
This project is heavy under development.
## Quick Guide
```rust
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(())
}
```