trunk 0.22.0-beta.2

Build, bundle & ship your Rust WASM application to the web.
1
2
3
4
5
6
7
8
9
10
11
use thiserror::Error;

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Error)]
pub enum GetPackageError {
    #[error("failed to send `GetPackage` request: {0}")]
    Send(String),
    #[error("failed to receive `GetPackage` response: {0}")]
    Receive(String),
    #[error("node package not found")]
    NotFound,
}