leptos/server_fn_macro
Trey Lowerison ed61ea9dd2
feat: add support for placing attributes on server functions (#2093)
* fix: add support for placing attributes on server functions

Adding instrumentation to server functions is not straightforward (requires calling out to another ssr-only function which is instrumented). This commit adds all attributes on the server function to both the generated front end and back end functions. If those attributes are only desirable on the backend say, a user can always wrap their attribute in `#[cfg_attr(feature = "ssr", ..)]`.

* nit: formatting in example cargo
2023-12-01 15:36:52 -05:00
..
src feat: add support for placing attributes on server functions (#2093) 2023-12-01 15:36:52 -05:00
Cargo.toml chore: remove (most) syn 1 dependencies (#1670) 2023-09-08 14:46:38 -04:00
Makefile.toml build: run tasks from workpace or member directory (#1339) 2023-07-13 16:46:51 -04:00