Skip to content

Commit 6007c64

Browse files
authored
[Salvo] Upgrade to 0.74 (#9437)
* [Salvo] Upgrade to 0.74 * rust 1.83 * docker update
1 parent f7bba3f commit 6007c64

16 files changed

+21
-21
lines changed

frameworks/Rust/salvo/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ diesel = { version = "2", features = ["postgres", "r2d2"] }
4343
deadpool = { version = "0.12", features = ["rt_tokio_1", "serde", "managed"] }
4444
deadpool-postgres = "0.14"
4545
futures-util = "0.3"
46-
lru = "0.12.0"
46+
lru = "0.12"
4747
markup = "0.15"
4848
# mimalloc = { version = "0.1", default-features = false }
49-
mongodb = { version = "2.4.0", features = ["zstd-compression", "snappy-compression", "zlib-compression"] }
49+
mongodb = { version = "2", 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.68", default-features = false, features = ["anyhow", "server", "http1", "affix"] }
52+
salvo = { version = "0.74", default-features = false, features = ["anyhow", "server", "http1", "affix-state"] }
5353
serde = { version = "1", features = ["derive"] }
5454
serde_json = "1"
5555
# smallvec = "1"
@@ -60,7 +60,7 @@ tokio-pg-mapper = "0.2.0"
6060
tokio-pg-mapper-derive = "0.2.0"
6161
tokio-postgres = "0.7"
6262
v_htmlescape = "0.15"
63-
dotenv = "0.15.0"
63+
dotenvy = "0.15"
6464

6565
[profile.release]
6666
lto = true

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.78-buster
1+
FROM rust:1.83
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.78-buster
1+
FROM rust:1.83
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.78-buster
1+
FROM rust:1.83
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.78-buster
1+
FROM rust:1.83
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.78-buster
1+
FROM rust:1.83
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.78-buster
1+
FROM rust:1.83
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.78-buster
1+
FROM rust:1.83
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.78-buster
1+
FROM rust:1.83
22

33
ADD ./ /salvo
44
WORKDIR /salvo

frameworks/Rust/salvo/src/main_diesel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::thread::available_parallelism;
1515
use anyhow::Error;
1616
use diesel::prelude::*;
1717
use diesel::r2d2::{ConnectionManager, Pool, PoolError, PooledConnection};
18-
use dotenv::dotenv;
18+
use dotenvy::dotenv;
1919
use once_cell::sync::OnceCell;
2020
use rand::rngs::SmallRng;
2121
use rand::{Rng, SeedableRng};

0 commit comments

Comments
 (0)