-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make handler arguments optional (#87)
* feat: support axum extractors * chore: update tuono example * chore: update tutorial example * doc: update documentation * feat: update version to v0.12.0 * fix: use clippy suggestion
- Loading branch information
1 parent
ae04276
commit 607da92
Showing
12 changed files
with
70 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "tuono" | ||
version = "0.11.2" | ||
version = "0.12.0" | ||
edition = "2021" | ||
authors = ["V. Ageno <[email protected]>"] | ||
description = "The react/rust fullstack framework" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "tuono_lib" | ||
version = "0.11.2" | ||
version = "0.12.0" | ||
edition = "2021" | ||
authors = ["V. Ageno <[email protected]>"] | ||
description = "The react/rust fullstack framework" | ||
|
@@ -33,7 +33,7 @@ either = "1.13.0" | |
tower-http = {version = "0.6.0", features = ["fs"]} | ||
colored = "2.1.0" | ||
|
||
tuono_lib_macros = {path = "../tuono_lib_macros", version = "0.11.2"} | ||
tuono_lib_macros = {path = "../tuono_lib_macros", version = "0.12.0"} | ||
# Match the same version used by axum | ||
tokio-tungstenite = "0.24.0" | ||
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// src/routes/pokemons/GOAT.rs | ||
use tuono_lib::{reqwest::Client, Request, Response}; | ||
use tuono_lib::{Request, Response}; | ||
|
||
#[tuono_lib::handler] | ||
async fn redirect_to_goat(_: Request, _: Client) -> Response { | ||
async fn redirect_to_goat(_req: Request) -> Response { | ||
Response::Redirect("/pokemons/mewtwo".to_string()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters