From bcd21d01e0b086888596057eca21af6517e6e6e5 Mon Sep 17 00:00:00 2001 From: eltitanb Date: Tue, 10 Jun 2025 10:34:48 +0100 Subject: [PATCH] bump rust --- Cargo.toml | 4 ++-- bin/cli.rs | 5 ----- bin/pbs.rs | 4 ---- bin/signer.rs | 4 ---- crates/signer/build.rs | 2 +- docs/docs/get_started/building.md | 22 ++++++++++++++-------- docs/docs/get_started/overview.md | 9 +++++++-- provisioning/build.Dockerfile | 2 +- rust-toolchain.toml | 2 +- 9 files changed, 26 insertions(+), 28 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 283caf0d..21b3c6da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,8 +3,8 @@ members = ["benches/*", "bin", "crates/*", "examples/builder_log", "examples/da_ resolver = "2" [workspace.package] -edition = "2021" -rust-version = "1.83" +edition = "2024" +rust-version = "1.85" version = "0.8.0-rc.2" [workspace.dependencies] diff --git a/bin/cli.rs b/bin/cli.rs index da89ca39..2442c8e7 100644 --- a/bin/cli.rs +++ b/bin/cli.rs @@ -4,11 +4,6 @@ use clap::Parser; #[tokio::main] async fn main() -> eyre::Result<()> { color_eyre::install()?; - // set default backtrace unless provided - if std::env::var_os("RUST_BACKTRACE").is_none() { - std::env::set_var("RUST_BACKTRACE", "1"); - } - let args = cb_cli::Args::parse(); args.run().await diff --git a/bin/pbs.rs b/bin/pbs.rs index 53714fb5..35b679f3 100644 --- a/bin/pbs.rs +++ b/bin/pbs.rs @@ -11,10 +11,6 @@ use tracing::{error, info}; async fn main() -> Result<()> { color_eyre::install()?; - // set default backtrace unless provided - if std::env::var_os("RUST_BACKTRACE").is_none() { - std::env::set_var("RUST_BACKTRACE", "1"); - } let _guard = initialize_tracing_log(PBS_MODULE_NAME, LogsSettings::from_env_config()?); let _args = cb_cli::PbsArgs::parse(); diff --git a/bin/signer.rs b/bin/signer.rs index e7c7da7c..75a55181 100644 --- a/bin/signer.rs +++ b/bin/signer.rs @@ -11,10 +11,6 @@ use tracing::{error, info}; async fn main() -> Result<()> { color_eyre::install()?; - // set default backtrace unless provided - if std::env::var_os("RUST_BACKTRACE").is_none() { - std::env::set_var("RUST_BACKTRACE", "1"); - } let _guard = initialize_tracing_log(SIGNER_MODULE_NAME, LogsSettings::from_env_config()?); let _args = cb_cli::SignerArgs::parse(); diff --git a/crates/signer/build.rs b/crates/signer/build.rs index 596353ea..bba7546a 100644 --- a/crates/signer/build.rs +++ b/crates/signer/build.rs @@ -1,5 +1,5 @@ fn main() -> Result<(), Box> { - std::env::set_var("OUT_DIR", "src/proto"); + unsafe { std::env::set_var("OUT_DIR", "src/proto") }; tonic_build::configure().build_server(false).compile_protos( &[ "proto/pb/v1/lister.proto", diff --git a/docs/docs/get_started/building.md b/docs/docs/get_started/building.md index 589b325c..5379fdf8 100644 --- a/docs/docs/get_started/building.md +++ b/docs/docs/get_started/building.md @@ -2,7 +2,6 @@ Commit-Boost's components are all written in [Rust](https://www.rust-lang.org/). This guide will walk you through the setup required to build them from source. It assumes you are on a Debian or Debian-based system (e.g., Ubuntu, Linux Mint, Pop OS). For other systems, please adapt the steps for your system's package manager accordingly. - ## Building via the Docker Builder For convenience, Commit-Boost has Dockerized the build environment for Linux `x64` and `arm64` platforms. It utilizes Docker's powerful [buildx](https://docs.docker.com/reference/cli/docker/buildx/) system. All of the prerequisites, cross-compilation tooling, and configuration are handled by the builder image. If you would like to build the CLI, PBS module, or Signer binaries and Docker images from source, you are welcome to use the Docker builder process. @@ -27,17 +26,15 @@ The `version` provided will be used to house the output binaries in `./build/