Skip to content

freeze stdlib in WASM #1180

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

Merged
merged 2 commits into from
Jul 26, 2019
Merged

Conversation

palaviv
Copy link
Contributor

@palaviv palaviv commented Jul 26, 2019

As discussed in #1142. We did not reach a conclusion there if we should make this the default. I can remove the default if we will decide against this.

@windelbouwman
Copy link
Contributor

Nice! Now we can use stdlib in wasm right?

@@ -10,6 +10,10 @@ edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]

[features]
default = ["freeze-stdlib"]
freeze-stdlib = ["rustpython-vm/freeze-stdlib"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice usage of options! I think the name is good. Another viable name for this option might be include-stdlib to indicate the inclusion of the the standard library for people who are unfamiliar with the concept of freezing. But I think most people will probably know the idea of freeze.

This looks good to me!

@windelbouwman windelbouwman merged commit 95561f4 into RustPython:master Jul 26, 2019
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