Crate proto_core
source ·Structs
- A GitHub release locator.
- A system for loading plugins from a locator strategy, and caching the
.wasm
file to the host’s file system. - UserConfigDeprecated
- SemVer version as defined by https://semver.org.
- SemVer version requirement describing the intersection of some version comparators, such as
>=1.2.3, <1.8
. - A wapm.io package locator.
Enums
- Strategies for locating plugins.
- Represents an unresolved version or alias that must be resolved to a fully-qualified and semantic result.
- Represents a resolved version or alias.
- A container for WASI virtual paths that can also keep a reference to the original real path.
Constants
Statics
- Cached static for the
is_offline
function.
Functions
- Cleans a potential version string by removing a leading
v
orV
, removing each occurence of.*
, and removing invalid spaces. - Create an HTTP/HTTPS client that’ll be used for downloading files.
- Create an HTTP/HTTPS client with the provided options, that’ll be used for downloading files.
- Convert the provided virtual guest path to an absolute host path.
- Returns true if the provided value is an alias. An alias is a word that maps to version, for example, “latest” -> “1.2.3”.
- This is a cached function that uses the
IS_OFFLINE
cached static. - Origin of the cached function
is_offline
. - Primes the cached function
is_offline
. This is a cached function that uses theIS_OFFLINE
cached static. - Convert the provided absolute host path to a virtual guest path suitable for WASI sandboxed runtimes.