We're currently using intertrait, which depends on linkme. While it works on Linux, macOS and Windows, it might not work elsewhere as it's platform-dependent.
Another angle to look at it is to look at the actual problem this casting is solving: traversal of the BPMN document tree and being able to find nodes with a particular trait type and use them.
We're currently using intertrait, which depends on linkme. While it works on Linux, macOS and Windows, it might not work elsewhere as it's platform-dependent.
In fact, there's no support for WebAssembly: https://github.com/dtolnay/linkme/issues/6 and that's one of the goals for BPXE.
Potential solution: try migrating to https://github.com/Lej77/cast_trait_object
Another angle to look at it is to look at the actual problem this casting is solving: traversal of the BPMN document tree and being able to find nodes with a particular trait type and use them.