[FEATURE REQUEST]: Module Router like Topcoat rs - https://docs.rs/topcoat/latest/topcoat/router/macro.module_router.html
Author: saikatdas0790Created Aug 21, 2026Updated Aug 21, 2026
Is your feature request related to a problem? Please describe. I'm always frustrated when I have to define all my routes inline in a file. I want filesystem inference
Describe the solution you'd like Ideally a filesystem router like SvelteKit. But I understand that it's a loftier goal which requires an additional library to be built. Instead, I'm looking a module router with automatic discovery. Since Rust's module system with mod.rs and <module_name>.rs already do the heavy lifting, we just need the router to conform to these conventions. Ideally use Topcoat-rs's implementation here: https://docs.rs/topcoat/latest/topcoat/router/macro.module_router.html
Source: leptos-rs/leptos