I should have explained my use case: i have a rust crate, which should do "platform independent" stuff, calculating diff values of two lists in my case, which is done in rust. But i also need "platform dependent" code, in my case: applying the diffs onto the dom (im developing a react.js-kind of thing for rust; it's very POC). So im bundling rust-code and "native" js-code into one crate.
Im doing it right now by patching emscripten, so it accepts emscriptens-js-library scripts being passed by
-L arguments. So it behaves on emscriptens-js-library files like they were .a or '.o' files (rustc only allows the -l and -L being passed by a depended crate).
That's the way im doing it right now, but maybe there is already a way to do this (bundle rust + js code in a depended crate) im not aware of?!
ps: sorry for my english