Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myfavshrimp/axum_route_helper
A declarative macro to help with axum route captures and wildcards
https://github.com/myfavshrimp/axum_route_helper
Last synced: 6 days ago
JSON representation
A declarative macro to help with axum route captures and wildcards
- Host: GitHub
- URL: https://github.com/myfavshrimp/axum_route_helper
- Owner: myFavShrimp
- License: mit
- Created: 2024-05-24T17:00:42.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-24T17:30:47.000Z (9 months ago)
- Last Synced: 2025-01-28T21:49:05.936Z (6 days ago)
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# axum route helper
```rust
route!(SomeRoute => "/path/{}/with/{}", (:something: String, *parameter: u8));assert_eq!(
SomeRoute::handler_route(),
"/path/:something/with/*parameter"
);assert_eq!(
SomeRoute::route_path(String::from("test"), 13),
"/path/test/with/13"
);
```