Port From Cpp

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.

rewrite-rs a117231 4 files · 14.0 KB Updated

File contents

rewrite-rs/skills/tree/main/skills/porting/port-from-cpp commit a11723183b

Frequently asked questions

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