Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Interfacing with Generated Code from Rust

nehwgeneration generates a custom trait featuring all generated methods in form of axum route handler stubs. To use the auto-generated code, you will need to implement this trait and add all of the methods to an axum router.

Warning

Automatic generation of an axum router is a planned feature.

Warning

Do not implement the trait inside files generated by nehwgeneration, as the tool will overwrite all of your changes to that file the next time it is commanded to work on this file.