hexser_macros — Procedural macros for the hexser crate
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.
[]
= "0.3.0" # macros enabled by default via the `macros` feature
Advanced users who know they only need the macros can depend directly, but this is uncommon:
[]
= "0.3.0"
Note: The derive and attribute macros are designed to work with the types/traits defined in
hexser. Using them standalone usually requireshexserin your dependency tree anyway.
Version compatibility
- Keep
hexser_macrosandhexseron the same minor/patch version (e.g.,0.3.x). - When upgrading
hexser, upgradehexser_macrosto the matching version.
Links
- Main crate (recommended): https://crates.io/crates/hexser
- Docs: https://docs.rs/hexser_macros
- Repository: https://github.com/squillo/hexser
- Publishing guide: ./../../PUBLISHING.md
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)
- provides: derive/attribute macros used by