Visitar URL original
freeze stdlib in WASM by palaviv · Pull Request #1180 · RustPython/RustPython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Freeze stdlib by default in WASM
  • Loading branch information
palaviv committed Jul 24, 2019
commit 8f1df4697dac49a458242dce0b379136858497f9
1 change: 1 addition & 0 deletions wasm/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ edition = "2018"
crate-type = ["cdylib", "rlib"]

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

Copy link
Copy Markdown
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!


[dependencies]
Expand Down