#affinidi #ssi #messaging #helper #logging #mediators

bin+lib affinidi-messaging-helpers

Affinidi Messaging Helpers

18 releases

Uses new Rust 2024

new 0.10.2 Mar 27, 2025
0.10.1 Mar 24, 2025
0.9.7 Feb 13, 2025
0.9.5 Jan 30, 2025
0.8.7 Dec 21, 2024

#6 in #affinidi

Download history 117/week @ 2024-12-11 363/week @ 2024-12-18 8/week @ 2024-12-25 8/week @ 2025-01-01 161/week @ 2025-01-08 519/week @ 2025-01-15 51/week @ 2025-01-22 487/week @ 2025-01-29 106/week @ 2025-02-05 154/week @ 2025-02-12 33/week @ 2025-02-19 34/week @ 2025-02-26 229/week @ 2025-03-19

265 downloads per month

Apache-2.0

2MB
25K SLoC

Rust 22K SLoC // 0.2% comments Swift 3K SLoC // 0.1% comments JavaScript 222 SLoC // 0.1% comments

Affinidi Messaging Helpers

Tools to help with setting up, managing and running examples against Affinidi Messaging

This crate contains the following helpers:

  1. setup-environment - Configures the initial environment for either local or remote mediators

Debug logging

To enable logging at DEBUG level just for this crate,

export RUST_LOG=none,affinidi_messaging_helpers=debug

Set Profile when running examples

You can have multiple environment profiles so that you can easily switch between different mediators.

The configuration file for profiles is generated from the setup-environment helper. This is stored in affinidi-messaging-helpers/conf/profiles.json

To set the profile you can either set an environment variable, or specify a profile at run-time

Using environment variable:

export TDK_ENVIRONMENT=local

cargo run --example mediator_ping

Using run-time option:

cargo run --example mediator_ping -- -p local

Examples

Dependencies

~105–140MB
~3M SLoC