Crate wit_deps

source ·
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§

Enums§

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

Type Aliases§