ukiapi-macros 0.0.1

Procedural macros for UkiApi web framework
Documentation
  • Coverage
  • 88.89%
    8 out of 9 items documented0 out of 8 items with examples
  • Size
  • Source code size: 11.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 321.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • ukiapi/ukiapi
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • abundis29

ukiapi-macros

Procedural macros for the UkiApi framework.

🚀 Macros

#[get("path")], #[post("path")], etc.

Attribute macros to define API endpoints. They generate a helper function (e.g., my_handler_route()) that returns a Route object used by the UkiApi builder. They also automatically infer request/response schemas for OpenAPI documentation.

#[model]

A shortcut macro for data models. It derives:

  • Serialize, Deserialize (Serde)
  • JsonSchema (Schemars)
  • Validate (Validator)
  • TS (ts-rs) for TypeScript bindings
  • Clone