typeshare icon indicating copy to clipboard operation
typeshare copied to clipboard

Option to disable wasmbind feature to prevent wasm interface polution

Open 8e8b2c opened this issue 1 year ago • 0 comments

I'm using typeshare with a project that builds a wasm module that must conform to a specific interface. Once I add the typeshare crate to my dependencies for the purpose of annotating my types, my wasm module's exports become tainted:

Compile(\"Error while importing \\\"__wbindgen_placeholder__\\\".\\\"__wbindgen_describe\\\": unknown import. Expected Function(FunctionType { params: [I32], results: [] })\") }), wasm_trace: [] }))"))

The culprit appears to be the wasmbind feature on chrono.

I have a fix/workaround that's easy enough: make wasmbind an optional but default feature. I'll open a PR shortly.

8e8b2c avatar Aug 16 '24 14:08 8e8b2c