-
Notifications
You must be signed in to change notification settings - Fork 196
Make rustworkx build and run with pyiodide
#1447
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
Changes from 20 commits
7bdeaff
7ce8078
b440e6b
e70b263
bf15e3b
76f5dff
4b17893
0e3b0ce
3527a6f
72ceb1a
826fbe7
b6fcd9a
aa34512
1a04b00
5378a9e
22af7ad
d0ebc78
e2f12bc
ba93544
55c7415
533978e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,14 @@ rustflags = [ | |
| "-C", "link-arg=-undefined", | ||
| "-C", "link-arg=dynamic_lookup", | ||
| ] | ||
|
|
||
| [target.wasm32-unknown-emscripten] | ||
| rustflags = [ | ||
| "-C", "target-feature=+atomics,+bulk-memory,+mutable-globals", | ||
| "-C", "link-arg=-sSIDE_MODULE=2", | ||
| "-C", "link-arg=-sWASM_BIGINT", | ||
| "-Z", "emscripten-wasm-eh", | ||
|
||
| ] | ||
|
|
||
| [unstable] | ||
| build-std = ["std", "panic_abort"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| features: | ||
| - | | ||
| `rustworkx` now has experimental support for `Pyodide <https://pyodide.org/en/stable/>`__. | ||
| Pyodide is a Python distribution for WebAssembly that runs in the browser. | ||
| This is the first release that compiles with Pyodide and will allow users to run `rustworkx` | ||
| in web applications. Because Pyodide wheels are not available in PyPI, | ||
| we are working with the Pyodide team to publish them in the Pyodide package index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: it seems like
pyodide-buildoverrides these, so I will open an issue to talk to them and check for alternatives. In the meantime, this is helpful for reference and when we compile outsidepyodide-buildThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also is useful for
rustworkx-coreand using rustworkx without python in wasm.