docs.rs failed to build affinidi-tdk-common-0.6.7
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
affinidi-tdk-common-0.5.2
affinidi-tdk-common
Shared building blocks for Affinidi Trust Development Kit (TDK) crates.
Overview
The crate is organised around four core concepts:
| Module | Purpose |
|---|---|
[config] |
TDKConfig + TDKConfigBuilder — typed configuration, owns optional DID resolver / secrets resolver / environment-file path / custom auth handlers. |
[TDKSharedState] (lib.rs) |
Runtime container exposing the DID resolver, secrets resolver, HTTPS client, and AuthenticationCache via accessor methods. Cheap to clone. |
[profiles] + [environments] |
Serialisable identity profiles + on-disk grouping (environments.json). |
[secrets] |
KeyringStore — handle into the OS native credential store (macOS Keychain, Windows Credential Manager, freedesktop Secret Service). |
[tasks::authentication] |
AuthenticationCache — shared, channel-driven cache for DID Auth tokens. |
[TDKError] is the single error funnel; consumers convert it to their own
error types via From<TDKError> impls.
Installation
[]
= "0.6"
Usage
use ;
# async
Storing profile secrets in the OS keyring
use KeyringStore;
#
Platform support
The keyring backend is selected at compile time:
| Target | Backend |
|---|---|
| macOS | apple-native-keyring-store (Keychain) |
| iOS | apple-native-keyring-store (Protected Data) |
| Windows | windows-native-keyring-store (Credential Manager) |
| Linux / FreeBSD / OpenBSD | dbus-secret-service-keyring-store (Secret Service over D-Bus) |
Migrating from 0.5.x
See CHANGELOG.md for the full breaking-change list and
side-by-side migration snippets.
Key dependencies
This crate aggregates several TDK libraries:
affinidi-did-resolver-cache-sdk— DID resolutionaffinidi-did-authentication— DID authenticationaffinidi-data-integrity— Data integrity proofsaffinidi-secrets-resolver— Secret management
Related crates
affinidi-tdk— Unified TDK entry pointaffinidi-meeting-place— Meeting Place SDK