- simplify some examples - add macrotest for expanding/snapshotting macro expansion & add tests - add workaround to enable referencing relative dirs from macrotest files - ensure workaround doesn't get built in release - add trybuild for testing error messages & add tests - fix indeterministic macro output - sort routes after collecting - use BTreeMap instead of HashMap to preserve insertion order - fix compile_error syntax error
9 lines
173 B
Rust
9 lines
173 B
Rust
use axum_folder_router::folder_router;
|
|
|
|
#[derive(Clone)]
|
|
struct AppState {
|
|
_foo: String,
|
|
}
|
|
|
|
#[folder_router("examples/advanced/api", AppState)]
|
|
struct MyFolderRouter();
|