-
Notifications
You must be signed in to change notification settings - Fork 10
Support for v2 of Wasm API #157
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
Conversation
46309d1 to
ba01fe1
Compare
| fn main() { | ||
| eprintln!("Invoke a named import"); | ||
| std::process::exit(1); | ||
| process::abort() |
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.
Would it be good to keep a log!("Invoke a named export"); here?
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.
I'll add that. Shouldn't really matter too much given it's an example but no harm in having it.
shopify_function/src/lib.rs
Outdated
| ($($args:tt)*) => { | ||
| { | ||
| use std::fmt::Write; | ||
| let mut buf = String::new(); |
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.
Would it be good macro hygiene to make this std::string::String?
Support the new Wasm API. Adds a
log!macro to log things.