[rust-dev] enscripten demo?

Brian Anderson banderson at mozilla.com
Mon Apr 9 13:16:54 PDT 2012


On 04/09/2012 01:00 PM, Brian Anderson wrote:
> On 04/04/2012 02:55 AM, Mohd. Bilal Husain wrote:
>> Passed a dumb sample rust bitcode to emscripten, got js functions#. 
>> Realized I need to run on core modules too for printing simple hello 
>> world. Took io from libcore, decimated code to avoid few build 
>> errors, emcc throws error
>>
>>     Unclear type in struct
>>
>> Anyways, need to figure out how to build native modules and core lib, 
>> std lib; and how to map these modules to imports in a sample 
>> hello-world.
>
> I did some tinkering this weekend and found the following:

> * Emscripten doesn't handle quoted labels, fixed in my branch: 
> https://github.com/brson/emscripten/tree/rust

This was fixed on emscripten master independently of my fix, so it's no 
longer in my branch


More information about the Rust-dev mailing list