Linking JS files from libraries #38492
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
O-asmjs
Target: asm.js - http://asmjs.org/
O-emscripten
Target: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!
hi,
it seems that it's not possible to link javascript files from a rust library at the moment. The usual practice is by setting the
--js-library $path_to_js_file
emcc-linker argument. But setting linker arguments from a lib is not allowed in rust (#36176, rust-lang/cargo#1293).I can think of two possible solutions for this:
--js-library
emcc argument to pull in the js file:The text was updated successfully, but these errors were encountered: