DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to port a Python, Go or C module to Rust with the tests ported first with Beautiful Rust

Use rust-port to move code to Rust while proving the behavior matches.

Short answer: Install the skills; review and port lean on rust-best-practices, so install all three; then point the agent at the source module in C, C++, Python, Go or JavaScript; let rust-port port the original tests first. All steps.

Who it is forA team rewriting a slow Python or Go module in Rust who cannot afford behavior changes.

The problemRewrites drift from the original because nobody checks that both versions behave the same.

The outcomeAn idiomatic Rust port whose ported tests pass against the same cases as the original.

What you need first

  • A Rust project and stable Rust
  • Node 22.20+ for npx skills, or Claude Code, GitHub CLI 2.90+ or Gemini CLI
  • clippy for the lints config

Steps

  1. Install the skills; review and port lean on rust-best-practices, so install all three
  2. Point the agent at the source module in C, C++, Python, Go or JavaScript
  3. Let rust-port port the original tests first
  4. Have it port the code until cargo test and clippy pass
  5. Compare outputs of the old and new versions on real inputs

Prompt for your agent

Use the rust-port skill from morganlinton/BeautifulRust to port <module> from <language> to Rust. Port the tests first, then the code, and do not finish until cargo test and clippy pass.

Caveat. This card is written from the morganlinton/BeautifulRust README, not from a test run by Deduped. Before you start, make sure you have a Rust project and stable Rust. Check the repo for newer instructions before you rely on these steps.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for morganlinton/BeautifulRust and "Port a Python, Go or C module to Rust with the tests ported first"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer