You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Marking this as help wanted as I'll accept a PR (you'll need to make a new crate in the workspace like shio_macros) but its not a priority for me. It'll also need to be behind the nightly feature flag.
The text was updated successfully, but these errors were encountered:
@Meralis40 From a quick look over that looks awesome! Go ahead and open a pull request when you're ready and we can discuss more there.
Some quick notes:
I'd like multi-mounting to be possible. Unsure how to support that easily. Ideally it'd result in an array of routes. We could extend .route( ... ) to also accept an array of routes. This can be done later. It's more of a nice-to-have.
It'd be nice to support a more generic #[route] decorator too. Not sure if the syntax is best. This can also be done later. It's also just a nice-to-have.
// Idea 1#[route(GET, path = "/")]// Idea 2#[route("/")]// Defaults to GET#[route("/", methods = [GET,POST])]
shio_macros would be the crate name (as it definitely has more than 1 macro) and macros/ would be the folder name
Re-export the macros from shio under the nightly feature. Procedural macros can be re-exported like normal items pub use shio_macros::*.
An (untested) idea for implementation:
Marking this as help wanted as I'll accept a PR (you'll need to make a new crate in the workspace like
shio_macros
) but its not a priority for me. It'll also need to be behind the nightly feature flag.The text was updated successfully, but these errors were encountered: