Skip to content

Commit 48316c2

Browse files
authored
[salvo] Update to version 0.68 (#9110)
* [salvo] Update to version 0.68 * cargo fmt * ok
1 parent 31ef34b commit 48316c2

17 files changed

+64
-63
lines changed

frameworks/Rust/salvo/Cargo.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ anyhow = "1"
4040
async-trait = "0.1"
4141
bytes = "1"
4242
diesel = { version = "2", features = ["postgres", "r2d2"] }
43-
deadpool = { version = "0.11", features = ["rt_tokio_1", "serde", "managed"] }
44-
deadpool-postgres = "0.13"
43+
deadpool = { version = "0.12", features = ["rt_tokio_1", "serde", "managed"] }
44+
deadpool-postgres = "0.14"
4545
futures-util = "0.3"
4646
lru = "0.12.0"
4747
markup = "0.15"
4848
# mimalloc = { version = "0.1", default-features = false }
4949
mongodb = { version = "2.4.0", features = ["zstd-compression", "snappy-compression", "zlib-compression"] }
5050
once_cell = "1"
5151
rand = { version = "0.8", features = ["min_const_gen", "small_rng"] }
52-
salvo = { version = "0.67", default-features = false, features = ["anyhow", "server", "http1", "affix"] }
52+
salvo = { version = "0.68", default-features = false, features = ["anyhow", "server", "http1", "affix"] }
5353
serde = { version = "1", features = ["derive"] }
5454
serde_json = "1"
5555
# smallvec = "1"
@@ -64,7 +64,4 @@ dotenv = "0.15.0"
6464

6565
[profile.release]
6666
lto = true
67-
opt-level = 3
6867
codegen-units = 1
69-
panic = "abort"
70-

frameworks/Rust/salvo/salvo-diesel.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.78-buster
22

33
ENV TECHEMPOWER_POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database/hello_world
44
ENV TECHEMPOWER_MAX_POOL_SIZE=28

frameworks/Rust/salvo/salvo-lru.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.78-buster
22

33
ENV TECHEMPOWER_POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database/hello_world
44

frameworks/Rust/salvo/salvo-mongo-raw.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.78-buster
22

33
ENV TECHEMPOWER_MONGODB_URL=mongodb://tfb-database:27017
44
ENV TECHEMPOWER_MAX_POOL_SIZE=28

frameworks/Rust/salvo/salvo-mongo.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.78-buster
22

33
ENV TECHEMPOWER_MONGODB_URL=mongodb://tfb-database:27017
44
ENV TECHEMPOWER_MAX_POOL_SIZE=28

frameworks/Rust/salvo/salvo-pg-pool.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.78-buster
22

33
ENV TECHEMPOWER_POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database/hello_world
44
ENV TECHEMPOWER_MAX_POOL_SIZE=28

frameworks/Rust/salvo/salvo-pg.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.78-buster
22

33
ENV TECHEMPOWER_POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database/hello_world
44

frameworks/Rust/salvo/salvo-sqlx.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.78-buster
22

33
ENV TECHEMPOWER_POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database/hello_world
44
ENV TECHEMPOWER_MAX_POOL_SIZE=56

frameworks/Rust/salvo/salvo.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.78-buster
22

33
ADD ./ /salvo
44
WORKDIR /salvo

frameworks/Rust/salvo/src/db_pg_pool.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
use deadpool_postgres::{Client, Manager, ManagerConfig, RecyclingMethod};
22
use tokio_pg_mapper::FromTokioPostgresRow;
3-
use tokio_postgres::{NoTls, Row, Error, Statement};
3+
use tokio_postgres::{Error, NoTls, Row, Statement};
44

55
use crate::{Fortune, World};
66

7-
87
pub async fn create_pool(database_url: String, max_pool_size: u32) -> deadpool_postgres::Pool {
98
let pg_config: tokio_postgres::Config = database_url.parse().expect("invalid database url");
109

0 commit comments

Comments
 (0)