Replies: 1 comment 3 replies
-
It's true yeah. The main reason for the difference is that the two crates have a very different history, but you're definitely not the first to run into this. Awhile back we started adding conversions in the To some degree it would be nice to have a shared type hierarchy here, but it's also somewhat difficult to do. Many pieces have pretty different representations so it's not so easy as "just copy all the stuff to a shared crate and have both depend on it". That being said I don't think it's impossible either, it's just not something that's been fully attempted historically I think. I think it'd be reasonable to give this a stab, but I don't think it's certain that we'd want to merge the work. Instead I'd at least want to evaluate the results and decide from that whether it's worth it. To be clear I don't think that this is a bad idea, but at the same time I also don't know that it's a guaranteed-to-be-good idea, which is why I'd want to evaluate the results myself at least. |
Beta Was this translation helpful? Give feedback.
-
I've been working with
wasm_parser
andwasm_encoder
from Rust, and I noticed that while many of the types are the same (or very similar) they are defined as separate types. This makes it difficult to take a piece of data fromwasm_parser
and plumb it straight intowasm_encoder
.Should they share the same types internally?
If so, I'd be interested in contributing to making this possible.
Beta Was this translation helpful? Give feedback.
All reactions