Don't rewrite it in Rust. Rewrite the 5% that's slow: profile your app, port the hot functions with your coding agent, prove they behave the same. Python, JS/TS, Ruby, Java, Kotlin, Go, PHP, C/C++, C#, R.
Rust agent-skillsai-agentsclaude-codeclaude-code-plugincodexdeveloper-toolsffimcpmcp-servernapi-rsnodejsoptimizationperformanceprofilerpyo3pythonrewrite-it-in-rustrubyrusttypescript
fmt
EL4CTEOe1b2e3517494
diff --git a/src/cfamily.rs b/src/cfamily.rsindex 0dd7fe7..ffc0140 100644--- a/src/cfamily.rs+++ b/src/cfamily.rs@@ -2136,7 +2136,14 @@ mod tests {#[cfg(unix)]fn run_c(dir: &Path, cc: &str, sources: &[&str], disable: bool) -> String {let std: &[&str] = if sources.iter().any(|s| is_cpp_file(s)) { &["-std=c++17"] } else { &[] };- let built = Command::new(cc).args(C_FLAGS).args(std).args(sources).args(["-o", "app"]).current_dir(dir).output().unwrap();+ let built = Command::new(cc)+ .args(C_FLAGS)+ .args(std)+ .args(sources)+ .args(["-o", "app"])+ .current_dir(dir)+ .output()+ .unwrap();assert!(built.status.success(), "{}", String::from_utf8_lossy(&built.stderr));let mut cmd = Command::new(dir.join("app"));if disable {