Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Ports a named TypeScript compiler pass to Rust end-to-end, with planning, subagent implementation, a test-fix loop, and review.
25% 58%+33 ptsof test cases passed
Passed 14 of 24 test cases with the skill, and 6 of 24 without it.
We are porting passes inside `src/ReactiveScopes/` to Rust. What is the target crate name?
Maps src/ReactiveScopes/ to crate react_compiler_reactive_scopes.
3 of 3 safety checks passed
Port a compiler pass from TypeScript to Rust end-to-end.
Arguments:
PruneMaybeThrows, SSA, ConstantPropagation)compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Pipeline.tsname: '$ARGUMENTS' in log entrieslog({...name: '...'}) calls and stopkind field of the matching log entry:
kind: 'ast', report that test-rust-port only supports hir and reactive kind passes currently and stopkind: 'hir' or kind: 'reactive', proceed| TypeScript Path | Rust Crate |
|---|---|
src/HIR/ (excluding BuildHIR.ts, HIRBuilder.ts) | react_compiler_hir |
src/HIR/BuildHIR.ts, src/HIR/HIRBuilder.ts | react_compiler_lowering |
src/Babel/, src/Entrypoint/ | react_compiler |
src/CompilerError.ts | react_compiler_diagnostics |
src/ReactiveScopes/ | react_compiler_reactive_scopes |
src/<Name>/ | react_compiler_<name> (1:1, e.g., src/Optimization/ -> react_compiler_optimization) |
compiler/crates/react_compiler/src/entrypoint/pipeline.rs already calls itRead the following files (all reads happen in main context):
compiler/docs/rust-port/rust-port-architecture.mdSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.