Expand description
Depit core
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
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. - lock_
path - Like lock, but reads the manifest at
manifest_path
and reads/writes the lock atlock_path
. - tar
- Packages path into a
wit
subtree in deterministictar
archive and writes it todst
. - untar
- Unpacks all WIT interfaces found within
wit
subtree of a tar archive read fromtar
todst
- update
- 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. - update_
path - Like update, but reads the manifest at
manifest_path
and writes the lock atlock_path
.
Type Aliases§
- Identifier
- WIT dependency identifier