From ccff6a3a128193ed46a1dd0b6f796ab0f480a305 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Fri, 30 May 2025 12:34:52 +0200 Subject: [PATCH] update to rust 1.87 --- Cargo.toml | 2 +- flake.nix | 3 +-- rust-toolchain.toml | 2 +- src/main.rs | 3 --- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e2e1379..7c17359 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rox" version = "0.1.0" -edition = "2021" +edition = "2024" license = "GPL-3.0" authors = ["Sebastian Hugentobler "] diff --git a/flake.nix b/flake.nix index d287364..d986596 100644 --- a/flake.nix +++ b/flake.nix @@ -20,13 +20,12 @@ rust = fx.combine [ (fx.fromToolchainFile { file = ./rust-toolchain.toml; - sha256 = "sha256-AJ6LX/Q/Er9kS15bn9iflkUwcgYqRQxiOIL2ToVAXaU="; + sha256 = "sha256-KUm16pHj+cRedf8vxs/Hd2YWxpOrWZ7UOrwhILdSJBU="; }) ]; buildInputs = [ rust pkgs.cargo-deny - pkgs.rust-analyzer ]; in { diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 971210b..448fe31 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.85.0" +channel = "1.87.0" components = ["rust-src", "rustc", "cargo", "rust-std", "rustfmt", "clippy", "rust-analyzer"] profile = "minimal" diff --git a/src/main.rs b/src/main.rs index 1539ff8..ff7815e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,9 +6,6 @@ use tracing::error; /// Cli entrypoint. fn main() { - if std::env::var_os("RUST_LOG").is_none() { - std::env::set_var("RUST_LOG", "info"); - } tracing_subscriber::fmt::init(); let cli = Cli::parse();