Construct an ad-hoc error from a string or existing non-anyhow
error
value.
Wrap an enum with common derives and serde required attributes.
Wrap a struct with common derives and serde required attributes.
Apply default attributes for configuration based structs.
Will assume that all keys are in camel case.
Calls the exec_command
host function to execute a command on
the host as a synchronous child process.
Calls the get_env_var
or set_env_var
host function to manage
environment variables on the host.
Calls the host_log
host function to log a message to the host’s terminal.
Return an error message wrapped in [WithReturnCode
], for use within #[plugin_fn]
.
Calls from_virtual_path
on the host to convert the provided value to a real path
from a virtual path.
Calls to_virtual_path
on the host to convert the provided value to a virtual path
from a real path.
Check whether a command exists or not on the host machine.
Fetch the provided request and return a response object.
Fetch the provided URL and deserialize the response as JSON.
Fetch the provided URL and deserialize the response as bytes.
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 subsequent WASM function calls.
Get configuration for the current extension plugin.
Return information about the host environment.
Get configuration for the current platform plugin.
Return the ID for the current plugin.
Return information about the testing environment.
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.
Map a miette
(or similar error) to an extism
Error.
Parse the list of argument strings into flags, options, and
positionals, and assign the values to the provided
Args
struct.