1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#[derive(thiserror::Error, Debug)]
pub enum BuildError {
    #[error("missing file '{0}': {1}")]
    NotFound(String, std::io::Error),
    #[error("missing parent directory")]
    MissingParent,
    #[error(transparent)]
    Io(#[from] std::io::Error),
    #[error("subprocess had non-zero exit status")]
    SubprocessError,
    #[error("error reading plugin metadata: {0}")]
    CargoMetadata(#[from] cargo_metadata::Error),
    #[error("missing plugin metadata")]
    MissingMetadata,
    #[error("invalid plugin metadata: {0}")]
    InvalidMetadata(String),
    #[error("missing plugin cdylib declaration")]
    MissingCdylib,
    #[error("missing required wasm32-wasi target")]
    MissingTarget,
    #[error("error adapting wasm: {0}")]
    Adapter(String),
}