Port From C

Port C into Rust — recovering the ownership, lifetime, nullability, and length that C never recorded, mapping pointers to references and slices, tag-plus-union to enums, return codes and errno to Result, and linking Rust into the existing build with bindgen and cbindgen. Use when porting, rewriting, or migrating C, a C library, firmware, or a C application into Rust, when replacing C modules one at a time behind the existing build, or when the user asks how a C construct such as malloc, a char pointer, a union, or a preprocessor macro translates to Rust.

rewrite-rs b7a2c22 4 files · 14.1 KB Updated

File contents

rewrite-rs/skills/tree/main/skills/porting/port-from-c commit b7a2c2256e

Frequently asked questions

npx skillmds@latest add rewrite-rs/port-from-c