Skip to content
This repository was archived by the owner on Jun 16, 2020. It is now read-only.

Remove std and core features#137

Merged
yurydelendik merged 1 commit into
bytecodealliance:masterfrom
alexcrichton:only-std
Dec 4, 2019
Merged

Remove std and core features#137
yurydelendik merged 1 commit into
bytecodealliance:masterfrom
alexcrichton:only-std

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This commit performs a similar transformation as
bytecodealliance/wasmtime#554, with similar motivation listed out there
as well.

@yurydelendik

Copy link
Copy Markdown
Collaborator

Two questions:

  • is there/can there be users of wasmparser with no_std feature? if yes, will we break them? ( probably major version needs to bumped)
  • Is there a need to remove "test-no_std.sh"?

@alexcrichton

Copy link
Copy Markdown
Member Author

Yeah this'll be a breaking change at least due to the removal of the features. I didn't notice the test script, but I can remove as well! That being said it's probably best to hold off for bytecodealliance/wasmtime#554 first.

@XAMPPRocky

Copy link
Copy Markdown
Contributor

@alexcrichton Now that wasmtime has now removed the std features, can this PR be merged or is there more work needed?

@yurydelendik

yurydelendik commented Dec 3, 2019

Copy link
Copy Markdown
Collaborator

@XAMPPRocky the actual goal of the wasmparser was to be used in no_std environment, e.g. use no memory allocations. It might be a good idea keep supporting this feature, and remove/configure/pref anything that needs allocations.

@XAMPPRocky

XAMPPRocky commented Dec 3, 2019

Copy link
Copy Markdown
Contributor

@yurydelendik I don't have any particular preference one way or the other on the actual change itself, though I find the reasons for the changes mentioned in bytecodealliance/wasmtime#554 reasonable. It's more that I would be hesitant about making larger PRs with this PR still open since it could likely cause merge conflicts on one side or the other.

@alexcrichton

Copy link
Copy Markdown
Member Author

Oops yes, sorry, this should be good to go now.

@yurydelendik yurydelendik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@alexcrichton can you remove test-no_std.sh as well?

This commit performs a similar transformation as
bytecodealliance/wasmtime#554, with similar motivation listed out there
as well.
@alexcrichton

Copy link
Copy Markdown
Member Author

Sure thing, done!

@yurydelendik
yurydelendik merged commit 194135a into bytecodealliance:master Dec 4, 2019
@yurydelendik

Copy link
Copy Markdown
Collaborator

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants