Step-by-step tutorial on leveraging Rust FFI to safely encapsulate legacy C code and eliminate memory bugs in DevOps tools