Skip to content

Conversation

@jeffcharles
Copy link
Contributor

@jeffcharles jeffcharles commented Aug 15, 2025

Support the new Wasm API. Adds a log! macro to log things.

@jeffcharles jeffcharles marked this pull request as ready for review September 25, 2025 15:26
fn main() {
eprintln!("Invoke a named import");
std::process::exit(1);
process::abort()
Copy link
Contributor

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?

Copy link
Contributor Author

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.

($($args:tt)*) => {
{
use std::fmt::Write;
let mut buf = String::new();
Copy link
Contributor

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?

@jeffcharles jeffcharles merged commit bd25318 into main Sep 25, 2025
4 checks passed
@jeffcharles jeffcharles deleted the jc.wasm-api-v2 branch September 25, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants