Skip to main content

Crate arty_macros_impl

Crate arty_macros_impl 

Source
Expand description

Token expansion for Arty’s entry-point attributes.

This companion crate provides the expansion functions used by arty_macros. Application code should enable Arty’s macros feature and use its main and test attributes instead.

main() expands an async entry point; test() additionally registers the function with Rust’s test harness. Invalid input produces compiler diagnostic tokens rather than a runtime error.

Functions§

main
Expands an async entry-point function into synchronous runtime setup.
test
Expands an async function into a runtime-backed synchronous test.