Skip to content
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

Update to latest TinyGo and Rust #2368

Merged
merged 2 commits into from
Jan 21, 2025
Merged

Conversation

anuraaga
Copy link
Contributor

@anuraaga anuraaga commented Jan 21, 2025

Fixes #2357

  • Updates TinyGo readmes to mention -buildmode=c-shared for reactors along with .WithStartFunctions("_initialize")
  • Updates tinygo target to wasip1 and exports to //go:wasmexport to match Go
  • Removes usage of cargo-wasi which doesn't seem to be updated to rust's rename of wasm32-wasip1
  • Updates rust target to wasm32-wasip1

Signed-off-by: Anuraag Agrawal <[email protected]>
@anuraaga anuraaga requested a review from mathetake as a code owner January 21, 2025 04:46
@anuraaga anuraaga marked this pull request as draft January 21, 2025 04:49
@anuraaga

This comment was marked as outdated.

Signed-off-by: Anuraag Agrawal <[email protected]>
@anuraaga anuraaga marked this pull request as ready for review January 21, 2025 05:23
// at /rustc/c396bb3b8a16b1f2762b7c6078dc3e023f6a2493/library/core/src/str/count.rs:135:5 - core::str::count::char_count_general_case::hfffa06842344b9fe
// at /rustc/c396bb3b8a16b1f2762b7c6078dc3e023f6a2493/library/core/src/str/count.rs:135:5 - core::str::count::do_count_chars::h124622240ac1fb8b
// at /rustc/c396bb3b8a16b1f2762b7c6078dc3e023f6a2493/library/core/src/str/count.rs:71:21
// 0: failed to invoke command default
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was confused but AFAICT, this test case / comment was created from a different binary than what we have in the source, so I tried updating it.

https://github.com/tetratelabs/wazero/blob/main/internal/testing/dwarftestdata/testdata/rust/main.rs

@mathetake mathetake merged commit 8358482 into tetratelabs:main Jan 21, 2025
52 checks passed
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.

examples: basic tinygo example fails with tinygo 0.35.0
2 participants