Crate ax_macros

source ·
Expand description

Latest Version Rust Documentation

AX Macros

AX is a decentralized event database, streaming and processing engine that allows you to easily build local-first cooperative apps. It makes it easy to run distributed applications on multiple nodes. It is a piece of software that allows you to run your own apps on one or more edge devices and have these apps seamlessly communicate and share data with each other.


Note: AX has been created by the company Actyx AG and predates the unrelated Actix framework (although AX wasn’t open-sourced until Oct’23). While we have changed crate names to avoid confusion, the company name remains Actyx AG and appears in some places.


This crate provides procedural macros supporting the creation of types in ax_types. It should in most cases be used through the AX SDK.

Macros

  • This macro takes a string and a range and asserts that the string’s length lies within this range. Due to the limitations of proc_macros this macro must be used in type position (for the simple check with two arguments), or it must be used in item position (for the extended mode shown below).