hexser_macros

Crates.iohexser_macros
lib.rshexser_macros
version0.4.7
created_at2025-10-07 01:25:28.13039+00
updated_at2025-10-13 00:10:01.67145+00
descriptionProcedural macros for the hexser hexagonal architecture crate
homepage
repositoryhttps://github.com/squillo/hexser/hexser_macros
max_upload_size
id1871066
size36,781
Scott Wyatt (scott-wyatt)

documentation

README

hexser_macros — Procedural macros for the hexser crate

Crates.io Documentation License

A small companion utility crate for the main hexser library.

This crate provides the procedural macros that power hexser’s zero‑boilerplate Hexagonal Architecture experience (Ports & Adapters). Most users should depend on hexser directly and let it enable/use these macros. Depend on hexser_macros directly only if you have an advanced use case and know you specifically need the raw macros.


Relationship to hexser (recommended usage)

In typical projects you do not need to add hexser_macros explicitly. The main crate re‑exports and uses these macros for you.

[dependencies]
hexser = "0.4.7"  # macros enabled by default via the `macros` feature

Advanced users who know they only need the macros can depend directly, but this is uncommon:

[dependencies]
hexser_macros = "0.4.7"

Note: The derive and attribute macros are designed to work with the types/traits defined in hexser. Using them standalone usually requires hexser in your dependency tree anyway.


Version compatibility

  • Keep hexser_macros and hexser on the same minor/patch version (e.g., 0.3.x).
  • When upgrading hexser, upgrade hexser_macros to the matching version.

Links


License

Licensed under either of

  • Apache License, Version 2.0, or
  • MIT license

at your option.


Knowledge Graph (high level)

  • hexser_macros
    • provides: derive/attribute macros used by hexser
    • consumed by: hexser (compile time)
    • typical user dependency: hexser (not this crate directly)
Commit count: 0

cargo fmt