Crate proto_pdk

source ·

Macros

Structs

Enums

Functions

  • Validate the current host OS and architecture against the supported list of target permutations.
  • Check whether a command exists or not on the host machine.
  • Fetch the provided request and deserialize the response as JSON.
  • Fetch the provided URL and deserialize the response as JSON.
  • Fetch the provided URL and return the text response.
  • Fetch the provided URL, deserialize the response as JSON, and cache the response in memory for the duration of the WASM function call. Caches does not persist across function calls.
  • Return the name of the binary for the provided name and OS. On Windows, will append “.exe”, and keep as-is on other OS’s.
  • Return information about proto and the host environment.
  • Return the loaded proto user configuration (~/.proto/config.toml). Does not include plugins!
  • Return a Rust target triple for the current host OS and architecture.
  • Get the active tool ID for the current WASM instance.
  • Detect whether the current OS is utilizing musl instead of gnu.
  • Load all git tags from the provided remote URL. The git binary must exist on the current machine.