Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate router to axum #293

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Dec 4, 2024

This pull request has been automatically created by a script. It contains changes from the branch 'feature/migrate-router-to-axum'. Please review the changes and merge them if appropriate.

@nekofar nekofar force-pushed the feature/migrate-router-to-axum branch 4 times, most recently from b245016 to f2e4d1f Compare December 5, 2024 15:22
The axum framework is included in the project's dependencies to help build web applications and services. This is done because it is a high-level web programming framework in Rust that uses type-level programming for safety and productivity.
Enabled "http" and "axum" features in the worker package to utilize extended functionality provided by these features for improved application performance.
The addition of worker-macros into the list of dependencies in Cargo.toml enhances the existing functionality of our worker module. This is especially for operations requiring http features.
The tower-service package is introduced to enhance the application's asynchronous programming capabilities.
Add `console_error_panic_hook` to improve error handling in WASM. This addition helps in capturing errors more effectively, providing better insights during debugging.
add `original-uri` feature to support functionality enhancements. This update allows handling requests with the original URI path more effectively.
add "json" feature to `axum` for enhanced request handling.

This change addresses the need to handle JSON payloads more effectively, leveraging `axum`'s capabilities.
Add `axum-cloudflare-adapter` to extend support for Cloudflare. This change enables handling of Cloudflare-specific features in the application.
Include `axum-macros` for supporting macro functionalities in the project. This addition enhances modularity and macro handling within the codebase.
Add `tokio` to manage asynchronous tasks with `sync` feature. This change is necessary to enhance concurrency support in the application while ensuring efficient execution of tasks.
add `tower-http` to leverage advanced tracing features. This enhances the project's HTTP layer, providing better insight into request handling.
add `tracing` for improved logging and debugging capabilities. Enhances visibility and trackability of events within the application.
Add `oneshot` for improved synchronization in the project. This dependency supports asynchronous programming patterns.
Add `mio` to handle asynchronous I/O in the project. This enhances the project’s capabilities to efficiently manage I/O tasks asynchronously.
Include `wasm-bindgen` for enhanced WebAssembly support. This update aims to improve the project's ability to interface with WebAssembly by using the `wasm-bindgen` toolkit.
Add `wasm-bindgen-futures` to support asynchronous operations in WebAssembly. This enhances the project's capability to handle async tasks.
Add `tokio-macros` to enhance asynchronous code capabilities. This inclusion aims to improve the ergonomics and flexibility of async programming in the project.
upgrade various dependencies to their latest versions for improved performance and compatibility. This change ensures the codebase stays current and benefits from the latest features and security patches.
update to the latest `cookie` version for improved security and compatibility with newer Node.js versions.
Refactor the routing to use Axum, enhancing async handling and compatibility with Cloudflare Workers via `axum_cloudflare_adapter`. This improves the maintainability and scalability of the application's routing logic.
simplify the URL formatting logic by merging lines. This change improves code readability and maintainability by consolidating URL strings.
Simplifying the build command by removing unnecessary flags helps reduce complexity and potential issues during package installation.
replace qualified enum variants with direct usage to enhance clarity and conciseness in route handling logic. this change streamlines the code by removing unnecessary qualifiers, improving readability.
reorder dependencies for better organization and clarity. This change enhances maintainability by grouping related dependencies together, improving readability and management.
@nekofar nekofar force-pushed the feature/migrate-router-to-axum branch from 319ab87 to cc82b17 Compare December 5, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant