[←] RETURN TO ARCHIVE
PRJ-02 Compilers & Developer Tools 1st Place
ENVIRONMENT: Rust / Arbitrum Stylus exploration

Sol2Rust .

Solidity-to-Rust Conversion Prototype

02 / A change of language
Solidity repository excerpt
function getValue() public view
    returns (uint256) {
    return value;
}
Rust / Stylus illustrative target
pub fn get_value(&self) -> U256 {
    self.value.get()
}
Target sketch, not generated output. The current prototype uses AI conversion; compilation is simulated. Implementation notes ↗
ROLE Prototype developer
TARGET NETWORK / VM Rust / Arbitrum Stylus exploration
STATUS AI-assisted prototype // Core Nexus 1st Place
CONTENT REVIEWED October 2026
01 // PROBLEM & MOTIVATION

Why I built it

Moving a Solidity contract to Rust requires understanding different storage APIs, type systems and execution models. This prototype explores an assisted editing workflow for that migration.

02 // INDIVIDUAL CONTRIBUTION

What I built

Built the Solidity input and Rust output workflow, conversion API and wallet-facing interface. The inspected implementation calls Gemini for conversion; it is not a deterministic syn/quote compiler.

03 // ARCHITECTURE & PIPELINE

How it works

client/src/components/conversion-panel.tsx sends Solidity to the conversion endpoint. server/conversion.ts delegates to Gemini. The current prompt targets ink! rather than Stylus, and the compilation path returns fixed example EVM bytecode with an AI-generated ABI. It does not establish a working Solidity-to-Stylus build pipeline.

ACTIVE TECHNOLOGIES & CRATES:
TypeScriptReactExpressGemini APISolidityRust
05 // CHALLENGES & TRADEOFFS

Technical decisions

01

Reconciling the intended Stylus target with the current ink! generation prompt.

02

Checking semantic equivalence and storage behavior before trusting generated Rust.

03

Replacing simulated compilation with a real target-specific build and test pipeline.

06 // IMPACT & VALIDATION

Results and reported recognition

Placements are owner-reported. Event and project links provide context, not independent award certification.

  • 1st Place at Core Nexus, owner-reported.
  • Public source demonstrates the conversion interface and AI service integration.
  • Earlier latency and gas-saving claims were removed: no reproducible supporting benchmark was found.