Expand description
WIT dependency management core library
Re-exports§
Macros§
- lock
- Asynchronously ensure dependency manifest, lock and dependencies are in sync. This must run within a tokio context.
- lock_
sync - Synchronously ensure dependency manifest, lock and dependencies are in sync.
Structs§
- Digest
- A resource digest
- Digest
Reader - A reader wrapper, which hashes the bytes read
- Digest
Writer - A writer wrapper, which hashes the bytes written
- Local
Cache - Local caching layer
- Lock
- WIT dependency lock mapping Identifiers to Entries
- Lock
Entry - WIT dependency Lock entry
- Manifest
- WIT dependency manifest mapping Identifiers to Entries
- Write
Cache - Write-only Cache wrapper
Enums§
- Lock
Entry Source - Source of this dependency
- Manifest
Entry - WIT dependency Manifest entry
Traits§
- Cache
- Resource caching layer
Functions§
- lock
- Given a TOML-encoded manifest and optional TOML-encoded lock, ensures that the path pointed to by
depsis 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 eitherNoneor out-of-sync. - lock_
path - Like lock, but reads the manifest at
manifest_pathand reads/writes the lock atlock_path. - tar
- Packages path into a
witsubtree in deterministictararchive and writes it todst. - untar
- Unpacks all WIT interfaces found within
witsubtree of a tar archive read fromtartodstand returns aHashMapof all unpacked transitive dependency identifiers. - update
- Given a TOML-encoded manifest, ensures that the path pointed to by
depsis in sync with the manifest. This is a potentially destructive operation! Returns a TOML-encoded lock on success. - update_
path - Like update, but reads the manifest at
manifest_pathand writes the lock atlock_path.
Type Aliases§
- Identifier
- WIT dependency identifier