Skip to content

Commit 576db59

Browse files
authored
chore: bump rust version to 1.87 (#1835)
1 parent 7a72fd5 commit 576db59

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

.circleci/config.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ executors:
5252
environment:
5353
DOCKER_NAMESPACE: portalnetwork
5454
docker:
55-
- image: cimg/rust:1.85.0
55+
- image: cimg/rust:1.87.0
5656
docker-nightly:
5757
docker:
5858
- image: rustlang/rust:nightly
@@ -153,7 +153,7 @@ jobs:
153153
resource_class: xlarge
154154
executor:
155155
name: rust/default
156-
tag: 1.85.0
156+
tag: 1.87.0
157157
environment:
158158
RUSTFLAGS: "-D warnings"
159159
RUST_LOG: "debug"
@@ -174,7 +174,7 @@ jobs:
174174
resource_class: xlarge
175175
executor:
176176
name: rust/default
177-
tag: 1.85.0
177+
tag: 1.87.0
178178
environment:
179179
RUSTFLAGS: "-D warnings"
180180
RUST_LOG: "debug"
@@ -203,15 +203,20 @@ jobs:
203203
# https://discuss.circleci.com/t/march-2022-beta-support-for-new-operating-system-for-windows-executors-windows-server-2022/43198/44
204204
command: |
205205
choco uninstall rust
206-
choco install rust-ms llvm cmake.portable -y
206+
choco install llvm cmake.portable -y
207+
Invoke-WebRequest -Uri https://win.rustup.rs/ -OutFile rustup-init.exe
208+
Start-Process -FilePath ".\rustup-init.exe" -ArgumentList "-y" -NoNewWindow -Wait
209+
Remove-Item .\rustup-init.exe
210+
$env:PATH += ";$env:USERPROFILE\.cargo\bin"
211+
rustc --version
207212
cargo build --workspace
208213
test:
209214
description: |
210215
Run tests.
211216
resource_class: 2xlarge
212217
executor:
213218
name: rust/default
214-
tag: 1.85.0
219+
tag: 1.87.0
215220
environment:
216221
RUSTFLAGS: "-D warnings"
217222
RUST_LOG: "debug,html5ever=error,selectors=error,discv5::service=info"
@@ -231,7 +236,7 @@ jobs:
231236
check-workspace-crates:
232237
executor:
233238
name: rust/default
234-
tag: 1.85.0
239+
tag: 1.87.0
235240
# parallelism level should be set to the amount of simulators we have or greater
236241
# The reason for this is the CI code currently only supports 1 input at a time
237242
# if we have a parallelism level of 5 and 6 sims one test runner will get 2 test sims and fail

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ keywords = ["ethereum", "portal-network"]
3434
license = "MIT"
3535
readme = "README.md"
3636
repository = "https://github.com/ethereum/trin"
37-
rust-version = "1.85.0"
37+
rust-version = "1.87.0"
3838
version = "0.3.1"
3939

4040
[workspace.dependencies]

crates/rpc/src/rpc_server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ pub enum WsHttpServerKind {
571571
/// Http server
572572
Plain(Server),
573573
/// Http server with cors
574-
WithCors(Server<Stack<CorsLayer, Identity>>),
574+
WithCors(Box<Server<Stack<CorsLayer, Identity>>>),
575575
}
576576

577577
impl WsHttpServerKind {
@@ -597,7 +597,7 @@ impl WsHttpServerKind {
597597
.build(socket_addr)
598598
.await
599599
.map_err(|err| RpcError::IoError(err, server_kind))?;
600-
Ok(WsHttpServerKind::WithCors(server))
600+
Ok(WsHttpServerKind::WithCors(Box::new(server)))
601601
} else {
602602
let server = builder
603603
.build(socket_addr)

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy.
33
# https://rust-lang.github.io/rustup/concepts/profiles.html
44
profile = "default"
5-
channel = "1.85.0"
5+
channel = "1.87.0"

testing/utp/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.85.0-bullseye AS builder
1+
FROM rust:1.87.0-bullseye AS builder
22

33
RUN apt-get update \
44
&& apt-get install clang -y \

0 commit comments

Comments
 (0)