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

Update to latest wasmtime dev #257

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

jder
Copy link
Contributor

@jder jder commented Nov 15, 2024

Closes #251

As discussed in there:

  • Updates to latest dev wasmtime and latest wasmtime release (26) for rust bindgen code
  • Translates enums in c headers into python-accessible values.
  • Wraps new preopen file/directory permissions into a public python API.
  • A few other minor changes to accommodate dev changes (32 -> 64 bits, a new "shared" flag)

There is more we could do using the exposed enums (in existing bindings where we have numbers now) and exposing new APIs but thought we'd land this first.

@alexcrichton
Copy link
Member

Thanks!

@alexcrichton alexcrichton merged commit 6ead2fa into bytecodealliance:main Nov 15, 2024
12 checks passed
atilag pushed a commit to atilag/wasmtime-py that referenced this pull request Nov 19, 2024
atilag pushed a commit to atilag/wasmtime-py that referenced this pull request Nov 19, 2024
alexcrichton pushed a commit that referenced this pull request Nov 25, 2024
* Wiring SharedMemory with it's corresponding bindings

* Restoring _bindings.py as is being autogenerated out of the C-API
interface in the wasmtime runtime repo

* Removing SharedMemory read/write methods, as they are also not
implemented in the Rust API for wasmtime.
A SharedMemory is not associated to any Store, and the read/write
methods from the linear memory seem  to rely on the Store in order
to properly operate.

* Making SharedMemory inherit from the Manager type

* Adding runtime typechecking to SharedMemory::_from_raw

* After regenerating the bindings from wasmtime c-api (main/dev branch)
and adjusting the shared memory arguments to match the new api, I
found out that I needed to adjust other parts of the bindings that I guess
have changed since the last release.
In this commit, I only change the (shared) memory related ones, but I
think I can adjust the rest of the c-api that has changed as well in
the following commits.

* Update to latest wasmtime dev (#257)

* Retoring bindings from main branch as it was updated to latest
changes in the C-APO from Wasmtime runtime repo

* * Fixing Python types as suggested by mypy
* Adding some unit tests for shared memory

* Adding unit tests for shared memory

---------

Co-authored-by: Jesse Rusak <[email protected]>
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.

Add dir_perms and file_perms to WasiConfig.preopen_dir
2 participants