47 releases (8 breaking)

new 0.10.0-rc2 Jul 24, 2024
0.10.0-prerelease May 24, 2024
0.9.0 Mar 23, 2024
0.8.0 Dec 12, 2023
0.0.2 Nov 24, 2022

#69 in WebSocket

Download history 4/week @ 2024-04-05 83/week @ 2024-04-19 15/week @ 2024-04-26 8/week @ 2024-05-17 92/week @ 2024-05-24 13/week @ 2024-05-31 13/week @ 2024-06-07 5/week @ 2024-06-14 111/week @ 2024-07-05 4/week @ 2024-07-12 46/week @ 2024-07-19

161 downloads per month
Used in 2 crates

CAL-1.0 license

130KB
4K SLoC

Rust 3K SLoC // 0.0% comments GraphQL 1K SLoC // 0.0% comments

AD4M client library in Rust

This is a library for interacting with the AD4M executor / agent, analogous to https://www.npmjs.com/package/@coasys/ad4m.

Usage

use ad4m_client::Ad4mClient;

let executor_url = "http://localhost:4000".to_string();
let cap_token = read_capability_token_from_file();

let ad4m_client = Ad4mClient::new(executor_url, cap_token);

println!("{:?}", ad4m_client.agent.me()?);

Until documentation will be added, have a look at the AD4M cli code for a full usage example: https://github.com/perspect3vism/ad4m/tree/main/cli.

Dependencies

~17–36MB
~556K SLoC