Skip to content

Commit

Permalink
fix(deps): update rust crate salvo to 0.55 (#6723)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn authored Sep 13, 2023
1 parent 0bb8b49 commit 15dd6bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/salvo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
authors = ["Chrislearn Young <[email protected]>"]

[dependencies]
salvo = { version = "0.54", default-features = false, features = ["http1"]}
salvo = { version = "0.55", default-features = false, features = ["http1"]}
tokio = { version = "1", features = ["full"] }

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion rust/salvo/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
framework:
github: salvo-rs/salvo
version: 0.54
version: 0.55
2 changes: 1 addition & 1 deletion rust/salvo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async fn main() {
let router = Router::new().get(index).push(
Router::with_path("user")
.post(index)
.push(Router::with_path("<id>").filter(get()).handle(get_user)),
.push(Router::with_path("<id>").filter(get()).goal(get_user)),
);
let acceptor = TcpListener::new("0.0.0.0:3000").bind().await;
Server::new(acceptor).serve(router).await
Expand Down

0 comments on commit 15dd6bc

Please sign in to comment.