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
C++: the test helper is Unix-only like its tests
Mohit Mishraceef8f5d5c10
diff --git a/src/cfamily.rs b/src/cfamily.rsindex c7cf9d4..82118e3 100644--- a/src/cfamily.rs+++ b/src/cfamily.rs@@ -1387,6 +1387,7 @@ mod tests {/// Compiles C++ `source` with the recording code of its function `name` and runs it; returns/// the recordings, or None without a C++ compiler.+ #[cfg(unix)]fn record_cpp(source: &str, name: &str) -> Option<Vec<Value>> {let cc = ["c++", "g++", "clang++"].into_iter().find(|c| Command::new(c).arg("--version").output().is_ok())?;let f = parse(source).into_iter().find(|f| f.name == name).unwrap();