rust-port
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.
Pinned to revision a9cdcfa94d13, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/rust-port/SKILL.md
- skills/rust-port/evals/port-c-config-parser/case.yaml
- skills/rust-port/evals/port-c-config-parser/files/config.c
- skills/rust-port/evals/port-c-config-parser/files/config.h
- skills/rust-port/evals/port-c-config-parser/files/test_config.c
- skills/rust-port/evals/port-c-config-parser/graders/01-builds-and-tests-pass.md
- skills/rust-port/evals/port-c-config-parser/graders/02-clippy-clean.md
- skills/rust-port/evals/port-c-config-parser/graders/03-no-unsafe.md
- skills/rust-port/evals/port-c-config-parser/graders/04-every-test-ported.md
- skills/rust-port/evals/port-c-config-parser/graders/05-errors-as-result.md
- skills/rust-port/evals/port-c-config-parser/graders/06-error-implements-error.md
- skills/rust-port/evals/port-c-config-parser/graders/07-option-for-absent.md
- skills/rust-port/evals/port-c-config-parser/graders/08-typed-flags.md
- skills/rust-port/evals/port-c-config-parser/graders/09-behavior-preserved.md
- skills/rust-port/evals/port-c-config-parser/graders/10-porting-notes.md
- skills/rust-port/evals/port-c-config-parser/graders/11-proportionate.md
- skills/rust-port/evals/port-c-config-parser/place-files.sh
- skills/rust-port/evals/port-c-config-parser/prompt.md
- skills/rust-port/evals/port-python-task-graph/case.yaml
- skills/rust-port/evals/port-python-task-graph/files/taskgraph.py
- skills/rust-port/evals/port-python-task-graph/files/test_taskgraph.py
- skills/rust-port/evals/port-python-task-graph/graders/01-builds-and-tests-pass.md
- skills/rust-port/evals/port-python-task-graph/graders/02-clippy-clean.md
- skills/rust-port/evals/port-python-task-graph/graders/03-every-test-ported.md
- skills/rust-port/evals/port-python-task-graph/graders/04-exceptions-as-error-enum.md
- skills/rust-port/evals/port-python-task-graph/graders/05-kind-is-enum.md
- skills/rust-port/evals/port-python-task-graph/graders/06-priority-is-option.md
- skills/rust-port/evals/port-python-task-graph/graders/07-definition-order-preserved.md
- skills/rust-port/evals/port-python-task-graph/graders/08-order-and-cycle-match.md
- skills/rust-port/evals/port-python-task-graph/graders/09-summary-every-kind-in-order.md
- skills/rust-port/evals/port-python-task-graph/graders/10-porting-notes.md
- skills/rust-port/evals/port-python-task-graph/graders/11-proportionate.md
- skills/rust-port/evals/port-python-task-graph/place-files.sh
- skills/rust-port/evals/port-python-task-graph/prompt.md
Every link opens the file at its source, pinned to the revision this page describes.