moxie icon indicating copy to clipboard operation
moxie copied to clipboard

`#[moxie::query]` attribute macro

Open anp opened this issue 4 years ago • 0 comments

Need to be able to mark parameters as #[slot] (part of the slot tuple generated).

Caching should be opt-in (out?). If cached, arguments should be assumed to be part of the input unless marked #[volatile] and output should be assumed Clone.

Need to handle local vs Send queries.

Should allow getting things from the illicit environment and treating them as inputs.

Should also generate doc comments explaining which parameters have which behavior w.r.t caching.

anp avatar Jul 04 '20 18:07 anp