Helper macro for wiring up axum routes with less boilerplate.
Find a file
2025-03-04 15:38:19 +01:00
axum-controller Remove unnecessary newline in doc-comment 2025-03-04 14:42:11 +01:00
axum-controller-macros fix: Correct description of macro crate 2025-03-04 15:38:19 +01:00
.envrc Initial commit 2025-03-04 14:26:04 +01:00
.gitignore Initial commit 2025-03-04 14:26:04 +01:00
.taplo.toml Initial commit 2025-03-04 14:26:04 +01:00
Cargo.toml Initial commit 2025-03-04 14:26:04 +01:00
flake.lock Update nix deps 2025-03-04 15:04:03 +01:00
flake.nix Initial commit 2025-03-04 14:26:04 +01:00
LICENSE.md Initial commit 2025-03-04 14:26:04 +01:00
README.md Update README links to use Markdown format 2025-03-04 15:03:46 +01:00
rust-toolchain.toml Initial commit 2025-03-04 14:26:04 +01:00

Crates.io Documentation

Axum-Controller

Helper macro for axum-typed-routing.

Adds a #[controller(...)] macro for easy wrapping of multiple routes inside of a "controller" Struct.

See example here.

See the docs for more information.

Licensing

This repository, like all my personal projects, is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). This ensures that modifications to the code remain open source when used in network services.

If the AGPL license doesn't suit your needs, a version under more permissive terms (like MIT, Apache, or BSD license) is available for a small fee. Please contact me directly via the email in the crate metadata for licensing inquiries.

Inspiration & Influences

This crate is inspired by and uses/used axum-typed-routing & route_controller . I basically just merged their public API into a single coherent one to get the best of both worlds.