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

Merge with upstream #132

Merged
merged 8 commits into from
Aug 30, 2024
Merged

Merge with upstream #132

merged 8 commits into from
Aug 30, 2024

Conversation

dhil
Copy link
Member

@dhil dhil commented Aug 30, 2024

No description provided.

alexcrichton and others added 8 commits August 28, 2024 16:37
)

Custom sections can be quite large with dwarf debugging information so
print only `...` in `--skeleton` mode.
…ce#1744)

`TypeInfo` currently tracks a type's size and whether it borrows
anything. I originally had wondered whether it should also track
sharedness, but I'm convincing myself this is unnecessary:
- being shared or not shouldn't change the size
- being shared or not doesn't change whether the type borrows

This change removes the TODO.
If I understand `wast`'s `Expander` correctly (which I may not!), there
is no need for it to know how to create type definitions for shared
functions because there is no way to write WAT that would mark a
function shared in an inline way. Since the only way to create a shared
function is with an explicit type ID (e.g., `(func (type $ft))`), we can
set `shared = false` when a `TypeDef` must be created.
This makes the `--help` and `-h` messages much more readable on
terminals that don't happen to be hundreds of characters wide.
…ce#1747)

This commit implements recognition of the `_initialize` function from
WASIp1 in the componentization process of `wasm-tools component new`.
This additionally corresponds to the same function in the proposed
[BuildTargets.md](WebAssembly/component-model#378).
This is implemented by having a small core wasm module which is just an
import and a `start` section get instantiated at the end of a component
to run `_initialize` before all other exports.
This shows up in all of the `--help` texts so figured that it might be
good to expand its documentation a bit.
@dhil dhil merged commit 872e89f into wasmfx:main Aug 30, 2024
29 checks passed
@dhil dhil deleted the wasmfx-merge branch August 30, 2024 10:01
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.

3 participants