# Port code to Rust

> Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.

- Page: https://youraiskill.com/skill/morganlinton-rust-port
- What it does: Port code from C, C++, Python, Go, JavaScript, or TypeScript into idiomatic Rust that keeps the original behavior: ownership instead of manual memory, Result instead of error codes and exceptions, enums instead of flag ints and magic strings, and tests that prove the port matches. Use this whenever the user asks to port, translate, convert, migrate, or rewrite code in Rust ("rewrite this in Rust", "what would this look like in Rust", "move this module to Rust"), even if they don't say "port". Pairs with the rust-best-practices skill, which covers the target code's style.
- Niches: coding, frontend
- Licence: MIT
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions plus scripts (34 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
