From 2092e22a7c87189c6df7b7fab53bc203b6124645 Mon Sep 17 00:00:00 2001 From: ospab Date: Tue, 21 Jul 2026 18:17:49 +0300 Subject: [PATCH] fix(cli): missing sha2::Digest import broke the CI build (v0.4.2-beta.3) Sha256::digest() is a trait method (from digest::Digest, re-exported as sha2::Digest), not an inherent one - fully-qualifying the call (sha2::Sha256::digest(...)) doesn't exempt it from Rust's requirement that the trait itself be in scope for method resolution. Whatever made this resolve locally without the explicit import didn't reproduce on the CI runner's dependency resolution, breaking `cargo check` and killing the whole v0.4.2-beta.3 matrix before a single platform job even started. Added the import; harmless even where it isn't strictly needed. --- ostp/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ostp/src/main.rs b/ostp/src/main.rs index 8918773..33164f8 100644 --- a/ostp/src/main.rs +++ b/ostp/src/main.rs @@ -3,6 +3,7 @@ use clap::Parser; use std::fs; use std::path::PathBuf; use colored::Colorize; +use sha2::Digest; #[derive(Parser, Debug)] #[command(author, version, about = "OSTP Core - Ospab Stealth Transport Protocol", long_about = None)]