mrconter1

mrconter1 / rustc-php

Public

A Rust compiler with ownership checking, written in PHP

156
3
89% credibility
Found Mar 01, 2026 at 19 stars 8x -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
PHP
AI Summary

A PHP program that compiles Rust source code into standalone Linux executables, supporting key Rust features like ownership and generics.

How It Works

1
🔍 Discover the Tool

You hear about a simple way to turn your Rust programs into runnable files using just basic web tools on any old computer setup.

2
📥 Get Ready

Download the files and make sure you have the free web scripting tool ready on your machine.

3
✏️ Write Your Program

Create a simple text file with your Rust instructions, like printing messages or doing calculations.

4
Compile It

Run the magic script on your program file to instantly create a ready-to-run application.

5
▶️ Launch and Test

Open your Linux window and execute the new file to see your program come alive.

It Works!

Your Rust creation runs perfectly, printing outputs or finishing tasks just as planned.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 156 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is rustc-php?

rustc-php is a Rust compiler implemented in PHP that turns .rs files into standalone x86-64 Linux ELF binaries—no LLVM, assembler, or linker required. It enforces ownership checking, borrow checking, type checking, move semantics, generics, traits, closures, and iterators, outputting runnable code via a simple CLI: php rustc.php main.rs -o main. Perfect for rust compiler linux environments like Ubuntu or shared hosts with only PHP.

Why is it gaining traction?

It delivers a borrow checker and full Rust semantics in pure PHP, sidestepping heavy rust compiler flags or toolchains for direct machine code emission. Devs love experimenting like a rust compiler explorer or rust compiler book walkthrough, integrable into rust github actions or rust github workflow for lightweight CI without native Rust installs. The rust compiler github novelty hooks compiler curious folks.

Who should use this?

Compiler enthusiasts dissecting rust compiler book concepts, PHP scripters needing rust compiler online for quick prototypes, or ops teams rigging rust github ci on rust compiler ubuntu/windows boxes sans Rust toolchain. Suits rust github dependency testing in constrained envs.

Verdict

Impressive toy compiler with broad feature support and a test suite covering ownership checking—run it for education or hacks. But 11 stars and 0.9% credibility score mean it's immature; skip for real rust compiler optimization flags or production.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.