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
added downcast functionality to Box<dyn HostError> #236
Conversation
Also, which commands do you run to see the full test suite? cargo test --doc
cargo test --doc --no-default-features --features=core |
Hey, thanks for the PR! yeah |
Should i run it and push another commit? |
Yeah, please! I also yanked the wabt that might fix the test failure we are seeing here. |
Do you mean that you modified |
well that was easier than expected :D |
yeah, the problem was coming from another crate we use for testing: wabt. It had minor version bump, however, it had some changes to wat format that prevented us to run the tests. |
Thanks for the merge!
Ah, cool, I see. I will comment though that i still can't get the test suite to pass locally, even after running |
have you tried to execute |
ohhh yeah that was what i was missing, thanks for that - i didn't notice the submodule definition.
|
Yeah, this looks like the error in wabt. Try to remove the |
Ah, awesome, should've tried that :) |
@pepyakin Sorry for so many small PRs one after the other, this time I made sure the code does what i need it to, and added a documentation test.
The last missing piece was adding by-value downcasting functionality (as opposed to the by-reference downcast). I use the
downcast-rs
crate here which provides a handy shortcut to implementing this but there's no magic happening there, as you can see in its docs. It also supports no_std as you can see.Now I can write code like this: