Skip to content

Commit 93ac7f4

Browse files
authored
Merge pull request #9000 from GlenDC/patch/rama-0.3.0-alpha.4
adapt rama benchmark code to 0.3.0-alpha.4
2 parents a0fa836 + 5f64170 commit 93ac7f4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105025,7 +105025,7 @@
105025105025
},
105026105026
{
105027105027
"id": 2836,
105028-
"version": 0.2,
105028+
"version": "0.3.0-alpha.4",
105029105029
"label": "rama",
105030105030
"language": "rust",
105031105031
"website": "https://github.com/plabayo/rama"
@@ -105303,4 +105303,4 @@
105303105303
"machine": "x86_64"
105304105304
}
105305105305
}
105306-
}
105306+
}

rust/rama/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name = "server"
33
version = "0.0.0"
44
edition = "2024"
55
publish = false
6-
rust-version = "1.85"
6+
rust-version = "1.91"
77

88
[dependencies]
9-
rama = { version = "0.2.0", features = ["http-full"] }
10-
serde = "1.0"
9+
rama = { version = "0.3.0-alpha.4", features = ["http-full"] }
10+
serde = "1"
1111
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }

rust/rama/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
framework:
22
github: plabayo/rama
3-
version: 0.2
3+
version: 0.3.0-alpha.4

rust/rama/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ async fn main() {
2020
.listen(
2121
SocketAddress::default_ipv4(3000),
2222
Router::new()
23-
.get("/", StatusCode::OK)
24-
.post("/user", StatusCode::OK)
25-
.get(
23+
.with_get("/", StatusCode::OK)
24+
.with_post("/user", StatusCode::OK)
25+
.with_get(
2626
"/user/{id}",
2727
async |Path(GetUserParams { id }): Path<GetUserParams>| id,
2828
),

0 commit comments

Comments
 (0)