nova-boot-macros 0.1.1

Proc-macro helpers and route/derive macros for Nova
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented0 out of 8 items with examples
  • Size
  • Source code size: 12.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 333.05 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • husainkarim

nova-boot-macros

Purpose

  • Procedural macros for routing, validation, and request/response ergonomics used across Nova.

Quick notes

  • Provides #[get], #[post], #[validate], and other attribute macros.
  • Use macros to reduce boilerplate and register routes via inventory.

Example

use nova_macros::{get, validate};

#[get("/items")]
fn list_items() -> Json<Vec<Item>> { ... }

Docs & development

  • This crate is a proc-macro and compiles as part of the workspace. See crates/nova-boot-macros/src for implementations and tests.