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.
api_unit_enum
Wrap a unit-only enum 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.
json_config
shared_config
toml_config

Structs§

DefineDockerMetadataInput
Input passed to the define_docker_metadata function.
DefineDockerMetadataOutput
Output returned from the define_docker_metadata function.
DefineToolchainConfigOutput
Output returned from the define_toolchain_config function.
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.
ExtendProjectGraphInput
Input passed to the extend_project_graph function.
ExtendProjectGraphOutput
Output returned from the extend_project_graph function.
ExtendProjectInput
Input passed to the extend_project function.
ExtendProjectOutput
Output returned from the extend_project function.
FileLocator
A file system locator.
GitHubLocator
A GitHub release locator.
HashTaskContentsInput
Input passed to the hash_task_contents function.
HashTaskContentsOutput
Output returned from the hash_task_contents function.
HostEnvironment
Information about the host environment (the current runtime).
HostLogInput
Input passed to the host_log host function.
InitializeToolchainInput
Input passed to the initialize_toolchain function.
InitializeToolchainOutput
Output returned from the initialize_toolchain function.
InstallDependenciesInput
Input passed to the install_dependencies function.
InstallDependenciesOutput
Output returned from the install_dependencies function.
LocateDependenciesRootInput
Input passed to the locate_dependencies_root function.
LocateDependenciesRootOutput
Output returned from the locate_dependencies_root function.
MoonContext
Information about the current moon workspace.
Operation
An operation can be used to track timings, statuses, and results for business logic that was performed within an action (a plugin function).
ProjectFragment
Fragment of a project including important fields.
PruneDockerInput
Input passed to the prune_docker function.
RegisterExtensionInput
Input passed to the register_extension function.
RegisterExtensionOutput
Output returned from the register_extension function.
RegisterToolchainInput
Input passed to the register_toolchain function.
RegisterToolchainOutput
Output returned from the register_toolchain function.
ScaffoldDockerInput
Input passed to the scaffold_docker function.
ScaffoldDockerOutput
Output returned from the scaffold_docker function.
SendRequestInput
Input passed to the send_request host function.
SendRequestOutput
Output returned from the send_request host function.
SettingCondition
Represents a condition against another setting.
SettingPrompt
Represents a prompt (question) for a configuration setting.
SetupEnvironmentInput
Input passed to the setup_environment function.
SetupEnvironmentOutput
Output returned from the setup_environment function.
SetupToolchainInput
Input passed to the setup_toolchain function.
SetupToolchainOutput
Output returned from the setup_toolchain function.
SyncOutput
Output returned from the sync_workspace and sync_project functions.
SyncProjectInput
Input passed to the sync_project function.
SyncWorkspaceInput
Input passed to the sync_workspace function.
TaskFragment
Fragment of a task including important fields.
TeardownToolchainInput
Input passed to the teardown_toolchain function.
TestEnvironment
Information about the current testing environment.
UrlLocator
A HTTPS URL locator.

Enums§

ConditionType
A type of condition to evaluate against a setting value.
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.
OperationStatus
The status of a performed operation.
PluginLocator
Strategies and protocols for locating plugins.
PluginLocatorError
Errors during plugin locator parsing.
PromptType
The type of prompt to render to receive an answer.
ScaffoldDockerPhase
The different scaffolding phases.
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).
ConfigSchema