-
Notifications
You must be signed in to change notification settings - Fork 824
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
add validate subcommand #323
Conversation
bors r+ |
323: add validate subcommand r=syrusakbary a=MarkMcCaskey Co-authored-by: Mark McCaskey <[email protected]>
src/bin/wasmer.rs
Outdated
)); | ||
} | ||
|
||
wabt::Module::read_binary(wasm_binary, &Default::default()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Runtime has a validate method:
Line 87 in bf823d2
pub use wasmer_runtime_core::{compile_with, validate}; |
It may be lighterweight solution than wabt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think we'd want better error messages than yes
or no
, I'll look in to the functions that that validate
fn calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out!
bors r- |
Canceled |
bors r+ |
Merge conflict |
bors r+ |
323: add validate subcommand r=MarkMcCaskey a=MarkMcCaskey Co-authored-by: Mark McCaskey <[email protected]> Co-authored-by: Mark McCaskey <[email protected]>
No description provided.