微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🧩

Rust Port

Rust Port · v
Software Development 作者 morganlinton 来源 TypingMind

简介

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.

标签

没有标签

同类 Skill