I was wondering if there are any plans/discussions about implementing the Web Extensions API bindings. I couldn't find any extension API namespaces https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API in web_sys. So are there any plans to implement those?
I have been able to run the Using the older --target no-modules example on the browser extension popup window. So it does seem possible to run rust wasm in Web Extensions.

Thanks for the report! I don't think we have a plan as-is right now, but if no-modules works would that suffice for your use case? We're not going to remove no-modules at any point in the near future, so if that works it should do the trick!
Yes the no-modules works great. I am not working on anything specific right now so I don't have any use case tbh. I was just exploring what can be done via web-sys. Seems like all the extension API calls such as tabs.insertCSS will have to be done from the JS side. But on the brighter side, it is indeed possible to offloaded performance critical task to rust if one needs that for a browser extension 馃槂.
I've created multiple WebExtensions entirely in Rust. After trying various different setups, I think using the @wasm-tool/rollup-plugin-rust plugin is the best way to go for WebExtensions (and probably in general, to be honest). Here is an example.
As for WebExtensions bindings, we don't have any, but you can make your own. I've created some here, but they're not ready to be published yet.
Ok sounds like I don't think we're going to add support specifically for extensions in the sense that it largely already works today. In that case I'm going to close.
@Pauan Woah! That binding looks awesome. Thanks for sharing it.