execute_with_timeout

Function execute_with_timeout 

Source
pub fn execute_with_timeout(
    binary: &Path,
    args: &[&str],
    timeout: Duration,
) -> Result<String>
Expand description

Execute binary with timeout and resource limits

This function provides safe execution with the following guarantees:

  • Timeout enforcement (prevents infinite loops)
  • Output capture (stdout and stderr)
  • Graceful cleanup on timeout