Port From Python

Port Python into Rust — construct mapping, the semantic traps (integer width, floor division, str versus bytes, exceptions to Result), and the seam, which is a process boundary for a standalone replacement and PyO3 when Python keeps calling the code. Use when porting, rewriting, or migrating Python, CPython, Django, Flask, FastAPI, NumPy, or a Python CLI into Rust, when replacing a Python tool with a Rust binary or a hot Python module with a native extension, or when the user asks how a Python construct translates to Rust.

rewrite-rs ef1d0e8 4 files · 15.7 KB Updated

File contents

rewrite-rs/skills/tree/main/skills/porting/port-from-python commit ef1d0e8c80

Frequently asked questions

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