No description
Find a file
2025-04-15 01:00:23 +02:00
examples Rework API to attribute macro 2025-04-15 00:42:48 +02:00
src Run rustfmt 2025-04-15 01:00:23 +02:00
.envrc Initial commit 2025-04-14 15:59:43 +02:00
.gitignore Initial commit 2025-04-14 15:59:43 +02:00
Cargo.lock Bump version to 0.3 2025-04-15 00:45:49 +02:00
Cargo.toml Bump version to 0.3 2025-04-15 00:45:49 +02:00
CHANGELOG.md Rework README.md & CHANGELOG.md 2025-04-15 00:59:30 +02:00
flake.lock Initial commit 2025-04-14 15:59:43 +02:00
flake.nix Initial commit 2025-04-14 15:59:43 +02:00
LICENSE.md Change license to MIT & bump to 0.2.2 2025-04-14 19:27:53 +02:00
README.md Rework README.md & CHANGELOG.md 2025-04-15 00:59:30 +02:00
rust-toolchain.toml Initial commit 2025-04-14 15:59:43 +02:00
rustfmt.toml Rewrite for better module handling 2025-04-14 18:37:43 +02:00

Crates.io Documentation Maintenance License: MIT

axum-folder-router

#[folder_router(...)] is a procedural attribute macro for the Axum web framework that automatically generates router boilerplate based on your direcory & file structure. Inspired by popular frameworks like next.js.

Features

  • File System-Based Routing: Define your API routes using intuitive folder structures
  • Reduced Boilerplate: Automatically generates route mapping code
  • IDE Support: Generates proper module imports for better rust-analyzer integration
  • Multiple Routers: Create separate folder-based routers in the same application

Usage

For detailed instructions see the examples or docs.rs.

License

This repository, is licensed permissively under the terms of the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.

Attribution

This macro is based on the build.rs template by @richardanaya