From f1ca411281f600be86b0377ec3ccdbe5e7ce5a8a Mon Sep 17 00:00:00 2001 From: bahdotsh Date: Thu, 21 Aug 2025 22:28:12 +0530 Subject: [PATCH] feat(runtime): add dtolnay/rust-toolchain action support - Add emulation support for dtolnay/rust-toolchain@ actions - Include Rust and Cargo availability checks for dtolnay toolchain action - Improve action detection logging for dtolnay Rust toolchain Related to #49 --- crates/runtime/src/emulation.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/runtime/src/emulation.rs b/crates/runtime/src/emulation.rs index 04c9549..a70292f 100644 --- a/crates/runtime/src/emulation.rs +++ b/crates/runtime/src/emulation.rs @@ -643,6 +643,15 @@ pub async fn handle_special_action(action: &str) -> Result<(), ContainerError> { wrkflw_logging::info(&format!("🔄 Detected Rust formatter action: {}", action)); check_command_available("rustfmt", "rustfmt", "rustup component add rustfmt"); + } else if action.starts_with("dtolnay/rust-toolchain@") { + // For dtolnay/rust-toolchain action, check for Rust installation + wrkflw_logging::info(&format!( + "🔄 Detected dtolnay Rust toolchain action: {}", + action + )); + + check_command_available("rustc", "Rust", "https://rustup.rs/"); + check_command_available("cargo", "Cargo", "https://rustup.rs/"); } else if action.starts_with("actions/setup-node@") { // Node.js setup action wrkflw_logging::info(&format!("🔄 Detected Node.js setup action: {}", action));