Crate tusk_rs_derive

source ·

Macros§

  • Embed a file into the binary as a string. This is useful for HTML files or other static files that need to be represented as a string.
  • Embed a file into the binary as a byte array. This is useful for binary files that need to be represented as a byte array.

Attribute Macros§

  • This macro is used to define a route. It takes in a request type and a route name.
  • This macro is used to define a treatment function. The function is almost the same as the [route] macro, but it should return a tuple of the response, the request, and the database connection instead of a Response.

Derive Macros§