Crate moon_pdk_api

Source

Macros§

anyhow
Construct an ad-hoc error from a string or existing non-anyhow error value.
api_enum
Wrap an enum with common derives and serde required attributes.
api_struct
Wrap a struct with common derives and serde required attributes.
config_struct
Apply default attributes for configuration based structs. Will assume that all keys are in camel case.

Structs§

EmptyInput
Represents an empty input.
ExecCommandInput
Input passed to the exec_command host function.
ExecCommandOutput
Output returned from the exec_command host function.
ExecuteExtensionInput
Input passed to the execute_extension function.
ExtensionMetadataInput
Input passed to the register_extension function.
ExtensionMetadataOutput
Output returned from the register_extension function.
FileLocator
A file system locator.
GitHubLocator
A GitHub release locator.
HostEnvironment
Information about the host environment (the current runtime).
HostLogInput
Input passed to the host_log host function.
MoonContext
Information about the current moon workspace.
SendRequestInput
Input passed to the send_request host function.
SendRequestOutput
Output returned from the send_request host function.
SyncWorkspaceInput
Input passed to the sync_workspace function.
SyncWorkspaceOutput
Output returned from the sync_workspace function.
TestEnvironment
Information about the current testing environment.
ToolchainMetadataInput
Input passed to the register_toolchain function.
ToolchainMetadataOutput
Output returned from the register_toolchain function.
UrlLocator
A HTTPS URL locator.

Enums§

HostArch
Architecture of the system environment.
HostLibc
Libc being used in the system environment.
HostLogTarget
Target where host logs should be written to.
HostOS
Operating system of the current environment.
Operation
An operation to perform within moon (the host) itself.
PluginLocator
Strategies and protocols for locating plugins.
PluginLocatorError
Errors during plugin locator parsing.
VirtualPath
A container for WASI virtual paths that can also keep a reference to the original real path.

Type Aliases§

AnyResult
Represents any result (using anyhow).