#[non_exhaustive]pub enum WasmBuildError {
InvalidSpec {
message: String,
},
Io {
operation: &'static str,
path: PathBuf,
source: Error,
},
CommandSpawn {
phase: WasmBuildPhase,
program: OsString,
source: Error,
},
CommandFailed {
phase: WasmBuildPhase,
status: ExitStatus,
stdout: String,
stderr: String,
},
InvalidMetadata {
message: String,
},
InvalidCargoConfiguration {
path: PathBuf,
message: String,
},
MissingArtifacts {
paths: Vec<PathBuf>,
},
InputsChangedDuringAcquisition {
before: InputDigest,
after: InputDigest,
},
PreparedInputSnapshotInvalidated,
FailedBuildCleanup {
build_error: Box<Self>,
path: PathBuf,
source: Error,
},
}Expand description
Structured failure from a cacheable Wasm build.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidSpec
The caller supplied an incomplete or inconsistent specification.
Io
A filesystem operation failed.
Fields
CommandSpawn
An external command could not be launched.
Fields
phase: WasmBuildPhaseBuild phase in which the command failed.
CommandFailed
An external command completed unsuccessfully. Cargo-build streams retain at most 1 MiB of raw bytes each, with an explicit marker if truncated; optional progress callbacks still receive all output.
Fields
phase: WasmBuildPhaseBuild phase in which the command failed.
status: ExitStatusOriginal child exit status.
InvalidMetadata
Cargo metadata did not contain the expected package graph.
InvalidCargoConfiguration
A discovered Cargo configuration could not be interpreted exactly.
Fields
MissingArtifacts
Cargo succeeded without producing every declared Wasm artifact.
InputsChangedDuringAcquisition
Declared inputs changed while acquiring or building Wasm artifacts.
Fields
before: InputDigestInput identity captured before the operation.
after: InputDigestInput identity observed during revalidation.
PreparedInputSnapshotInvalidated
Another concurrent reader invalidated the prepared input snapshot before publication.
FailedBuildCleanup
A build failed and its incomplete fingerprint directory could not be removed.
Trait Implementations§
Source§impl Debug for WasmBuildError
impl Debug for WasmBuildError
Source§impl Display for WasmBuildError
impl Display for WasmBuildError
Source§impl Error for WasmBuildError
impl Error for WasmBuildError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()