Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use Rust to write Firefox add-ons/extensions? [closed]

Mozilla has the Oxidation project:

The goal of Oxidation is to make it easier and more pleasant to use Rust in Firefox, and correspondingly to increase the amount of Rust code in Firefox.

But it does not mention anything about whether Rust is supported for add-ons or not.

like image 267
typo Avatar asked Aug 09 '18 10:08

typo


1 Answers

Nowadays, you can do with WebExtensions and WebAssembly (guide how to compile here). You then just embed it as wasm code in your add-on like in any website.

This add-on e.g. did so. (found on reddit)

like image 123
rugk Avatar answered Sep 20 '22 08:09

rugk