| Crates.io | affinidi-messaging-helpers |
| lib.rs | affinidi-messaging-helpers |
| version | 0.10.9 |
| created_at | 2024-12-16 15:49:04.643214+00 |
| updated_at | 2025-09-06 09:24:16.353689+00 |
| description | Affinidi Messaging Helpers |
| homepage | https://affinidi.com/ |
| repository | https://github.com/affinidi/affinidi-tdk-rs |
| max_upload_size | |
| id | 1485182 |
| size | 377,238 |
Tools to help with setting up, managing and running examples for Affinidi Messaging.
This crate contains the following helpers:
setup-environment - Configures the initial environment for either local or remote mediators.To enable logging at the DEBUG level just for this crate:
export RUST_LOG=none,affinidi_messaging_helpers=debug,affinidi_messaging_sdk=info
You can have multiple environment profiles to switch between different mediators easily.
The configuration file for profiles is generated from the setup-environment helper. It stores the profile information in affinidi-messaging-helpers/conf/profiles.json file.
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 -- -e local
Go to the examples folder to explore and run other examples.