Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to use serde typetag with WASM #8

Open
vhiribarren opened this issue Jan 21, 2020 · 1 comment
Open

Not possible to use serde typetag with WASM #8

vhiribarren opened this issue Jan 21, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@vhiribarren
Copy link
Owner

It does not seem possible to use https://github.com/dtolnay/typetag to easily convert from TOML to boxed trait objects for WASM, but it works with native compilation.

The use of https://github.com/mmastrac/rust-ctor might be the reason, since it uses low level file format manipulation to start code execution. There is no such thing in WASM, or at least here is a start section, but even so, the technique would be different than the one currently used by ctor.

@vhiribarren vhiribarren added the bug Something isn't working label Jan 21, 2020
@vhiribarren
Copy link
Owner Author

vhiribarren commented Jan 21, 2020

I seem to be correct on the issue:

mmastrac/rust-ctor#14
rustwasm/wasm-bindgen#1216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant