From 70c5816ac155189f40e414a2df22d54d005b052d Mon Sep 17 00:00:00 2001 From: Renan Santos Date: Mon, 24 Jun 2024 16:09:32 -0300 Subject: [PATCH] chore: fix Rust version to 1.78.0 --- CHANGELOG.md | 1 + build/docker-bake.hcl | 2 +- offchain/host-runner/src/config.rs | 1 + offchain/rust-toolchain.toml | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 offchain/rust-toolchain.toml diff --git a/CHANGELOG.md b/CHANGELOG.md index 5247b46bf..a908394e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changed the dispatcher to close epochs based on block numbers instead of block timestamps. - **BREAKING**: replaced the environment variable `CARTESI_EPOCH_DURATION` with `CARTESI_EPOCH_LENGTH_IN_BLOCKS` to match the new epoch algorithm, and set its default value to 7200 (1 day worth of blocks, in average, considering one block is mined every 12 seconds). - **BREAKING**: replaced the internal environment variable `RD_EPOCH_DURATION` with `RD_EPOCH_LENGTH_IN_BLOCKS` to match the new epoch algorithm, and also set its default value to 7200. +- Bumped Rust Version to 1.78.0 ## [1.4.0] 2024-04-09 diff --git a/build/docker-bake.hcl b/build/docker-bake.hcl index f5fab7721..bbd1d266f 100644 --- a/build/docker-bake.hcl +++ b/build/docker-bake.hcl @@ -18,7 +18,7 @@ target "common" { context = ".." args = { BASE_IMAGE = "debian:bookworm-20240311-slim" - RUST_VERSION = "1.77.0" + RUST_VERSION = "1.78.0" GO_VERSION = "1.22.1" FOUNDRY_NIGHTLY_VERSION = "293fad73670b7b59ca901c7f2105bf7a29165a90" SERVER_MANAGER_VERSION = "0.9.1" diff --git a/offchain/host-runner/src/config.rs b/offchain/host-runner/src/config.rs index a052ebb70..9d7873b90 100644 --- a/offchain/host-runner/src/config.rs +++ b/offchain/host-runner/src/config.rs @@ -5,6 +5,7 @@ use clap::Parser; use log::{LogConfig, LogEnvCliConfig}; const DEFAULT_ADDRESS: &str = "0.0.0.0"; + #[derive(Debug, Clone)] pub struct Config { pub log_config: LogConfig, diff --git a/offchain/rust-toolchain.toml b/offchain/rust-toolchain.toml new file mode 100644 index 000000000..51985806f --- /dev/null +++ b/offchain/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.78.0"