Expand description
WIT dependency management core library
Re-exports§
Macros§
- Asynchronously ensure dependency manifest, lock and dependencies are in sync. This must run within a tokio context.
- Synchronously ensure dependency manifest, lock and dependencies are in sync.
Structs§
- A resource digest
- A reader wrapper, which hashes the bytes read
- A writer wrapper, which hashes the bytes written
- Local caching layer
- WIT dependency lock mapping Identifiers to Entries
- WIT dependency Lock entry
- WIT dependency manifest mapping Identifiers to Entries
- Write-only Cache wrapper
Enums§
- Source of this dependency
- WIT dependency Manifest entry
Traits§
- Resource caching layer
Functions§
- Given a TOML-encoded manifest and optional TOML-encoded lock, ensures that the path pointed to by
deps
is in sync with the manifest and lock. This is a potentially destructive operation! Returns a TOML-encoded lock if the lock passed to this function was eitherNone
or out-of-sync. - Packages path into a
wit
subtree in deterministictar
archive and writes it todst
. - Unpacks all WIT interfaces found within
wit
subtree of a tar archive read fromtar
todst
and returns a HashMap of all unpacked transitive dependency identifiers. - Given a TOML-encoded manifest, ensures that the path pointed to by
deps
is in sync with the manifest. This is a potentially destructive operation! Returns a TOML-encoded lock on success.
Type Aliases§
- WIT dependency identifier