Skill / SKILL.md

Port From C

rewrite-rs/skills

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.
2 views 33 repository stars 0 commentsUpdated Nov 27, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/rewrite-rs/skills' skill-source

Use the complete skill-source/skills/porting/port-from-c directory with your client’s skill installer.

  • skills/porting/port-from-c

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/porting/port-from-c

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
21c4ce1618fd93cf2b4d0b64ea51cd019ae517a2b8fe161c7ac554489a69bb30
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills