Crate moon_pdk_api Copy item path Source 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 CalVer Container for a calendar version. DefineDockerMetadataInput Input passed to the define_docker_metadata function. DefineDockerMetadataOutput Output returned from the define_docker_metadata function. DefineRequirementsInput Input passed to the define_requirements function. DefineRequirementsOutput Output returned from the define_requirements function. DefineToolchainConfigOutput Output returned from the define_toolchain_config function. DetectVersionInput Input passed to the detect_version_files function. DetectVersionOutput Output returned by the detect_version_files function. DownloadPrebuiltInput Input passed to the download_prebuilt function. DownloadPrebuiltOutput Output returned by the download_prebuilt function. EmptyInput Represents an empty input. ExecCommand 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. ExtendProjectOutput Output utilized within the extend_project_graph function. ExtendTaskCommandInput Input passed to the extend_task_command function. ExtendTaskCommandOutput Output returned from the extend_task_command function. ExtendTaskScriptInput Input passed to the extend_task_script function. ExtendTaskScriptOutput Output returned from the extend_task_script 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. Id A compact string identifier for use within records, key lookups, and more.
Supports unicode alphanumeric characters, forward slash /, period .,
underscore _, and dash -. A leading @ is supported to support npm package names. IdError InitializeToolchainInput Input passed to the initialize_toolchain function. InitializeToolchainOutput Output returned from the initialize_toolchain function. InstallDependenciesInput Input passed to the install_dependencies function.
Requires locate_dependencies_root. InstallDependenciesOutput Output returned from the install_dependencies function. LoadVersionsInput Input passed to the load_versions function. LoadVersionsOutput Output returned by the load_versions function. LocateDependenciesRootInput Input passed to the locate_dependencies_root function. LocateDependenciesRootOutput Output returned from the locate_dependencies_root function. LocateExecutablesInput Input passed to the locate_executables function. LocateExecutablesOutput Output returned by the locate_executables function. LockDependency Represents a dependency definition in a lockfile. ManifestDependencyConfig Represents a dependency in a manifest file. MoonContext Information about the current moon workspace. NativeInstallInput Input passed to the native_install function. NativeInstallOutput Output returned by the native_install function. NativeUninstallInput Input passed to the native_uninstall function. NativeUninstallOutput Output returned by the native_uninstall function. Operation An operation can be used to track timings, statuses, and results for
business logic that was performed within an action (a plugin function). ParseLockInput Input passed to the parse_lock function. ParseLockOutput Output returned from the parse_lock function. ParseManifestInput Input passed to the parse_manifest function. ParseManifestOutput Output returned from the parse_manifest function. ParseVersionFileInput Input passed to the parse_version_file function. ParseVersionFileOutput Output returned by the parse_version_file function. ProjectDependency A project-to-project relationship. ProjectFragment Fragment of a project including important fields. PruneDockerInput Input passed to the prune_docker function.
Requires locate_dependencies_root. PruneDockerOutput Output returned from the prune_docker function. RegisterExtensionInput Input passed to the register_extension function. RegisterExtensionOutput Output returned from the register_extension function. RegisterToolInput Input passed to the register_tool function. RegisterToolOutput Output returned by the register_tool function. RegisterToolchainInput Input passed to the register_toolchain function. RegisterToolchainOutput Output returned from the register_toolchain function. RegistryLocator An OCI registry locator. ResolveVersionInput Input passed to the resolve_version function. ResolveVersionOutput Output returned by the resolve_version function. ScaffoldDockerInput Input passed to the scaffold_docker function. ScaffoldDockerOutput Output returned from the scaffold_docker function. SemVer Container for a semantic version. 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. UnpackArchiveInput Input passed to the unpack_archive function. UrlLocator A HTTPS URL locator. Version SemVer version as defined by https://semver.org .VersionReq SemVer version requirement describing the intersection of some version
comparators, such as >=1.2.3, <1.8.CacheInput Types of inputs that can be cached. ConditionType A type of condition to evaluate against a setting value. Extend Type of extend/merge strategy. 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. ManifestDependency Represents a dependency definition in a manifest file. 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. UnresolvedVersionSpec Represents an unresolved version or alias that must be resolved
to a fully-qualified version. VersionSpec Represents a resolved version or alias. VirtualPath A container for WASI virtual paths that can also keep a reference to the original real path. ID_CLEAN_PATTERN Pattern that removes unsupported characters from an identifier. ID_PATTERN Pattern that all identifiers are matched against. Supports unicode alphanumeric
characters, forward slash /, period ., underscore _, and dash -.
A leading @ is supported to support npm package names. AnyResult Represents any result (using anyhow). ConfigSchema