Crate depit

Source
Expand description

Depit core

Re-exports§

pub use futures;
pub use tokio;

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
DigestReader
A reader wrapper, which hashes the bytes read
DigestWriter
A writer wrapper, which hashes the bytes written
LocalCache
Local caching layer
Lock
WIT dependency lock mapping Identifiers to Entries
LockEntry
WIT dependency Lock entry
Manifest
WIT dependency manifest mapping Identifiers to Entries
WriteCache
Write-only Cache wrapper

Enums§

LockEntrySource
Source of this dependency
ManifestEntry
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 either None or out-of-sync.
lock_path
Like lock, but reads the manifest at manifest_path and reads/writes the lock at lock_path.
tar
Packages path into a wit subtree in deterministic tar archive and writes it to dst.
untar
Unpacks all WIT interfaces found within wit subtree of a tar archive read from tar to dst
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 at lock_path.

Type Aliases§

Identifier
WIT dependency identifier