30 releases

new 0.0.32 Apr 19, 2025
0.0.28 Mar 26, 2025
0.0.16 Nov 17, 2024

#974 in Authentication

Download history 38/week @ 2025-01-18 174/week @ 2025-01-25 49/week @ 2025-02-01 4/week @ 2025-02-08 358/week @ 2025-02-15 593/week @ 2025-02-22 90/week @ 2025-03-01 109/week @ 2025-03-08 13/week @ 2025-03-15 120/week @ 2025-03-22 32/week @ 2025-03-29 8/week @ 2025-04-05 205/week @ 2025-04-12

367 downloads per month
Used in 2 crates

MPL-2.0 license

310KB
6K SLoC

The openiap.client crate provides the [Client] struct and its methods. For now this is only the GRPC and WebSocket client, later we will add a web rest, named pipe and TCP client as well. Initialize a new client, by calling the Client::new_connect method.

use openiap_client::{OpenIAPError, Client, QueryRequest};
#[tokio::main]
async fn main() -> Result<(), OpenIAPError> {
    let client = Client::new_connect("").await?;
    let q = client.query( QueryRequest::with_projection(
        "entities",
        "{}",
        "{\"name\":1}"
    )).await?;
    let items: serde_json::Value = serde_json::from_str(&q.results).unwrap();
    let items: &Vec<serde_json::Value> = items.as_array().unwrap();
    for item in items {
        println!("Item: {:?}", item);
    }
    Ok(())
}

OpenIAP client c library

This is the rust implementation of the openiap client. This will also function as the "base" for openiap SDK implementations in other programming languages. For now this is only the GRPC and WebSocket client, later we will add a web rest, named pipe and TCP client as well.

Dependencies

~16–32MB
~492K SLoC