-
Notifications
You must be signed in to change notification settings - Fork 71
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
Skip unknown entries in the custom name section #576
Conversation
Looks like work to update |
This would be quite useful for wasm32-wasi cases. |
From my point of view this could be just merged. But It seems that this project is abandoned. |
I'll ask around in the rust-wasm discord. I'd gladly share some maintenance work on this as it's a really helpful tool |
I've tested this locally and existing tests still pass. Before I'll merge anything else, I'll first try to figure out what's up with the CI (maybe github actions may be easier to work with), |
Will it be possible to prepare a new git tag? It's a bit annoying to manually tell |
Yes, I can do a release once I finish the current cleanup work. I think updating some of the wasmparser lib will take a while so maybe i'll do one before that. |
@AlexEne Do you have an idea of how long that would take? We're stuck on an old Rust nightly because of this bug, would be great to update. As a bandaid I can install twiggy from git, so it's not a huge deal, but would be nice to have a rough timeline. |
I think it's safe to publish, I'll either do it by the end of today, or early next week. |
Awesome, thanks! |
I tried publishing a new version, I'm getting a weird error. I will debug this on Tuesday: error[E0599]: no variant or associated item named `from_args` found for enum `Options` in the current scope
--> twiggy.rs:17:33
|
17 | let options = opt::Options::from_args();
| ^^^^^^^^^ variant or associated item not found in `Options`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
6 | use structopt::StructOpt;
|
warning: unused import: `structopt::StructOpt`
--> twiggy.rs:9:5
|
9 | use structopt::StructOpt;
|
= note: `#[warn(unused_imports)]` on by default
error: aborting due to previous error; 1 warning emitted |
The meaning of that error is that two different versions of Lines 22 to 26 in f2e5abb
|
That's strange, both are at 0.3.22 when doing |
You're still depending on |
@fitzgen Can I please get crates.io permissions for the other crates so i can publish a new twiggy release? ( |
Done |
Thank you! |
twiggy uses an ancient version of
wasmparser
which errors out when encountering an "unknown" entry in the custom name section. The error looks like this:This PR adds code to just skip any name entry which fails to parse. This is a short term solution to resolve one specific issue which is a blocker for me. I also started to port twiggy to the newest wasmparser version in order to increase compatibility with new wasm features. This is a lot of work, though. The API changed quite a bit.
fixes #574