Compiling rustc to the web

General question. Has anyone attempted compiling rustc to be embedded in a web browser?

The current Rust playground implementations require a server-based Docker setup. I wonder if the work of compiling code could be pushed client-side for increased security and ease of deployment. Naturally the size of the web page would be very large, but it strikes me as an interesting experiment.

Rust can compile to webassembly, which is the preferred way to achieve this.

EDIT: Apologies - I misread the question.

Compiling applications/libraries written in Rust to JavaScript/asm.js/WebAssembly is one thing, compiling the full compiler suite is a whole different thing.

There exist experiments of running LLVM in the browser, so it is possible, but I don't think anyone really tried to compile rustc as well