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

Improve WasmerEnv, fix emscripten imports #2005

Merged
merged 5 commits into from
Jan 11, 2021
Merged

Conversation

MarkMcCaskey
Copy link
Contributor

@MarkMcCaskey MarkMcCaskey commented Jan 11, 2021

This PR adds two new features to WasmerEnv:

  • alias = "alias_name" for specifying additional names to try to find the export by
  • optional = true for specifying that failure to find this export is okay

In addition, it fixes some breakages on emscripten introduced by migrating emscripten to WasmerEnv naively. I've tested this in examples/nginx on the 0.x branch and Wasmer is able to run nginx again, so this resolves #1997

Review

  • Add a short description of the the change to the CHANGELOG.md file

@MarkMcCaskey MarkMcCaskey requested a review from Hywan as a code owner January 11, 2021 20:40
@syrusakbary
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Jan 11, 2021
2005: Improve WasmerEnv, fix emscripten imports r=syrusakbary a=MarkMcCaskey

This PR adds two new features to `WasmerEnv`:
- `alias = "alias_name"` for specifying additional names to try to find the export by
- `optional = true` for specifying that failure to find this export is okay

In addition, it fixes some breakages on emscripten introduced by migrating emscripten to `WasmerEnv` naively. I've tested this in `examples/nginx` on the `0.x` branch and Wasmer is able to run nginx again, so this resolves #1997 

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jan 11, 2021

Build failed:

@MarkMcCaskey
Copy link
Contributor Author

bors r-

@MarkMcCaskey
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Jan 11, 2021
2005: Improve WasmerEnv, fix emscripten imports r=MarkMcCaskey a=MarkMcCaskey

This PR adds two new features to `WasmerEnv`:
- `alias = "alias_name"` for specifying additional names to try to find the export by
- `optional = true` for specifying that failure to find this export is okay

In addition, it fixes some breakages on emscripten introduced by migrating emscripten to `WasmerEnv` naively. I've tested this in `examples/nginx` on the `0.x` branch and Wasmer is able to run nginx again, so this resolves #1997 

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <[email protected]>
@MarkMcCaskey
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 11, 2021

Already running a review

@MarkMcCaskey
Copy link
Contributor Author

bors r-

@bors
Copy link
Contributor

bors bot commented Jan 11, 2021

Canceled.

@MarkMcCaskey
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Jan 11, 2021
2005: Improve WasmerEnv, fix emscripten imports r=MarkMcCaskey a=MarkMcCaskey

This PR adds two new features to `WasmerEnv`:
- `alias = "alias_name"` for specifying additional names to try to find the export by
- `optional = true` for specifying that failure to find this export is okay

In addition, it fixes some breakages on emscripten introduced by migrating emscripten to `WasmerEnv` naively. I've tested this in `examples/nginx` on the `0.x` branch and Wasmer is able to run nginx again, so this resolves #1997 

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <[email protected]>
@MarkMcCaskey MarkMcCaskey merged commit 86574c6 into master Jan 11, 2021
@bors bors bot deleted the fix/emscripten-exports branch January 11, 2021 22:11
@MarkMcCaskey
Copy link
Contributor Author

bors r-

@bors
Copy link
Contributor

bors bot commented Jan 11, 2021

Canceled.

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.

nginx doesn't seem to work in 1.0.0
2 participants