Skill / SKILL.md

Port From Cpp

rewrite-rs/skills

Port C++ into Rust — RAII and smart pointers onto ownership, templates onto generics and traits, exceptions onto Result, the STL onto Rust collections, and the traps (move semantics, implicit conversions, undefined behaviour, iterator invalidation). Use when porting, rewriting, or migrating C++, a C++ library, or a C++ application into Rust, when replacing a C++ module with Rust behind the existing build, or when the user asks how a C++ construct such as unique_ptr, shared_ptr, a template, or an STL container translates to Rust.
3 views 29 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Port C++ into Rust — RAII and smart pointers onto ownership, templates onto generics and traits, exceptions onto Result, the STL onto Rust collections, and the traps (move semantics, implicit conversions, undefined behaviour, iterator invalidation). Use when porting, rewriting, or migrating C++, a C++ library, or a C++ application into Rust, when replacing a C++ module with Rust behind the existing build, or when the user asks how a C++ construct such as unique_ptr, shared_ptr, a template, or an STL container 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-cpp directory with your client’s skill installer.

  • skills/porting/port-from-cpp

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/porting/port-from-cpp

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
b30d5bf56101f72fbb74dbc62c7dbf2b8758725dc38160cc3387c02542d16613
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills