rs-db-driver-opensearch-opensearch 0.1.0
OpenSearch: opensearch (the driver, re-exported, with a runnable example)
Install
cargo add rs-db-driver-opensearch-opensearch --registry rupm
In Ruststudio: Packages, search for rs-db-driver-opensearch-opensearch, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-db-driver-opensearch-opensearch
OpenSearch - opensearch: the official async client
Add it with `rupm add rs-db-driver-opensearch-opensearch` (or `cargo add rs-db-driver-opensearch-opensearch --registry rupm`). The driver `opensearch` is re-exported as `rs_db_driver_opensearch_opensearch::opensearch`.
Also serves: Amazon OpenSearch Service
This driver is async: your project also needs an async runtime, for example `cargo add tokio --features macros,rt-multi-thread`.
## Example
```rust
use opensearch::http::transport::Transport;
use opensearch::OpenSearch;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = OpenSearch::new(Transport::single_node("http://localhost:9200")?);
let response = client.info().send().await?;
let body = response.json::<serde_json::Value>().await?;
println!("{body}");
Ok(())
}
```