resuma-macros 0.4.3

Procedural macros for Resuma: view!, #[component], #[server], #[island], js!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use proc_macro2::Span;
use thiserror::Error;

#[derive(Debug, Error)]
#[error("rs2js: unsupported construct: {message}")]
pub struct Rs2JsError {
    pub message: String,
    pub span: Span,
}

impl Rs2JsError {
    pub fn unsupported(what: &str, span: Span) -> Self {
        Self {
            message: what.to_string(),
            span,
        }
    }
}