Skip to content

oligamiq/rubrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubrc

Rubrc is a rustc that runs in the browser.

It is a port of the rustc compiler to WebAssembly. It is a work in progress and is not yet ready for general use.

This have some bottlenecks, like the lack of thread spawn is very slow.

Demo: Rubrc

Special Thanks

Projects

  • rubri by LyonSyonII - At first, I was using this project to run it on the browser.
  • browser_wasi_shim by bjorn3 - This project is used to run the WASI on the browser.
  • browser_wasi_shim-threads by oligamiq - This project is used to run the WASI with threads on the browser.
  • rust_wasm by oligamiq - This is a project that hosts files and sysroots compiled from Rustc, supporting from Tier 1 to Tier 2 with host in this project, and compiled to wasm.

People

  • bjorn3 - He created the foundation for compiling Rustc to WASI and managing linker relations.
  • oligamiq - He created Rustc compiled with LLVM Backend to WASI.
  • whitequark - He created the LLVM to WASI.
  • rust-lang - They created the Rust language.

Related Page

Issues

This has been created in a rather haphazard manner, but as the creator, I will be busy for a while, so it’s been left in this state for now. There are numerous bugs, such as commands throwing errors and subsequently becoming unusable, but feel free to open issues if necessary. Minor pull requests to improve usability are also welcome, so feel free to tweak it as you like.

Features

! This project require coop coep headers to work, so you need to run it on a server or use a browser extension to allow it.

  • Run rustc on the browser

Funding

The projects that this project depends on, namely browser_wasi_shim-threads, rust_wasm, and shared-object, are all my projects. The toolchain-for-building-rustc that rust_wasm depends on is also my project. I was the one who enabled the LLVM backend for rustc, and ultimately, I aim to make rustc executable in browsers that support wasm and allow cargo to run seamlessly on the web.

If you like or want to use this series of projects, I would appreciate it if you could contribute financially via the sponsor button.

Please note that coding has temporarily stopped due to being busy, and there may be missing or incorrect documentation. Although it works, it is currently in a state with various issues, so I do not recommend using it for production.

License

This project is licensed under the MIT OR Apache-2.0 License.

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages