65 lines
1.7 KiB
Markdown
65 lines
1.7 KiB
Markdown
# Changelog
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
## [Unreleased]
|
|
|
|
- No changes yet
|
|
|
|
## [0.3.1] - 2025-04-15
|
|
|
|
- Fix invalid doc links
|
|
|
|
## [0.3.0] - 2025-04-15
|
|
|
|
After some experimentation, the API has begun to stabilize. This should likely be the last breaking change for some time.
|
|
|
|
### Breaking Changes
|
|
|
|
- **Reworked implementation into an attribute macro**
|
|
- Previous implementation required function calls:
|
|
```rust
|
|
folder_router!("./examples/simple/api", AppState);
|
|
// ...
|
|
let folder_router: Router<AppState> = folder_router();
|
|
```
|
|
- New implementation uses an attribute macro:
|
|
```rust
|
|
#[folder_router("./examples/simple/api", AppState)]
|
|
struct MyFolderRouter;
|
|
// ...
|
|
let folder_router: Router<AppState> = MyFolderRouter::into_router();
|
|
```
|
|
- This approach provides a cleaner API and allows for multiple separate folder-based Routers
|
|
|
|
## [0.2.3] - 2025-04-14
|
|
|
|
### Changed
|
|
- **Improved method detection** - Now properly parses files instead of using string matching
|
|
- Previous version checked if file contained ```pub async #method_name```
|
|
- New version properly parses the file using `syn` for more accurate detection
|
|
|
|
## [0.2.2] - 2025-04-14
|
|
|
|
### Changed
|
|
- **License changed to MIT**
|
|
|
|
## [0.2.1] - 2025-04-14
|
|
|
|
### Improved
|
|
- Enhanced documentation
|
|
- Added more comprehensive tests
|
|
|
|
## [0.2.0] - 2024-04-14
|
|
|
|
### Changed
|
|
- **Improved code integration**
|
|
- Generate module imports instead of using ```include!```
|
|
- Makes the code compatible with rust-analyzer
|
|
- Provides better IDE support
|
|
|
|
## [0.1.0] - 2024-04-14
|
|
|
|
### Added
|
|
- Initial release
|
|
- Minimum viable product adapted from https://github.com/richardanaya/axum-folder-router-htmx
|