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

[rwasm] Call wasm module start before init #130

Merged
merged 4 commits into from Aug 13, 2021
Merged

Conversation

ospencer
Copy link
Contributor

@ospencer ospencer commented Aug 12, 2021

This PR adds a call to a wasm runnable's start function (usually called _start, but can have other names).

Swift modules can now write any initialization code in the module's body. AssemblyScript and Rust modules can export an explicit _start function.

Closes #127.

cohix
cohix previously approved these changes Aug 13, 2021
Copy link
Contributor

@cohix cohix left a comment

Choose a reason for hiding this comment

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

My only comment is that your branch name should start with oscar/ or os/, otherwise looks great :)

@cohix
Copy link
Contributor

cohix commented Aug 13, 2021

I'm now thinking about Flight Deck customers, they would have modules sitting in storage that use init.

@cohix cohix dismissed their stale review August 13, 2021 14:34

Wondering about Flight Deck backwards compat

@ospencer ospencer changed the title [rwasm] BREAKING: Call wasm module start instead of init [rwasm] Call wasm module start before init Aug 13, 2021
@ospencer ospencer merged commit 4e7a778 into main Aug 13, 2021
@ospencer ospencer deleted the call-wasm-module-start branch August 13, 2021 20:51
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.

[rwasm] Call wasm module's start function
2 participants