16 releases

0.0.16 Nov 17, 2024
0.0.15 Nov 11, 2024
0.0.13 Oct 27, 2024
0.0.4 Sep 1, 2024
0.0.3 Aug 17, 2024

#369 in Authentication

Download history 8/week @ 2024-08-23 143/week @ 2024-08-30 13/week @ 2024-09-06 15/week @ 2024-09-13 11/week @ 2024-09-20 11/week @ 2024-09-27 127/week @ 2024-10-04 231/week @ 2024-10-11 489/week @ 2024-10-18 473/week @ 2024-10-25 47/week @ 2024-11-01 238/week @ 2024-11-08 128/week @ 2024-11-15 19/week @ 2024-11-22 9/week @ 2024-11-29 7/week @ 2024-12-06

170 downloads per month
Used in 2 crates

MPL-2.0 license

275KB
5.5K SLoC

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.


lib.rs:

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(())
}

Dependencies

~15–49MB
~784K SLoC