This is a cargo-generate
template.
An example of how to use the aranya-client
library to:
- Setup a team
- Sync Aranya graphs
- Create an Aranya Fast Channel
- Send encrypted data between peers
During setup, the example application starts an instance of the aranya-daemon
for each Aranya user in the background. The daemon automatically handles syncing Aranya graph states between peers to the Aranya client can focus on the operations it wants to perform on the team.
Install cargo-generate.
Generate a workspace for the example:
cargo generate aranya-project/aranya templates/aranya-example
cargo build --release
target/release/aranya-example
Optionally, you can set the tracing log level with:
ARANYA_EXAMPLE=info target/release/aranya-example
Reference: tracing log levels