Skip to content

Commit

Permalink
Require wasmtime>=0.30,<0.31.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Oct 5, 2021
1 parent 7522c2a commit 9af4321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pypi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def long_description():
install_requires=[
"importlib_resources; python_version<'3.9'",
"appdirs~=1.4",
"wasmtime>=0.28,<0.29"
"wasmtime>=0.30,<0.31"
],
packages=["yowasp_yosys"],
package_data={"yowasp_yosys": [
Expand Down
3 changes: 1 addition & 2 deletions pypi/yowasp_yosys/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ def _run_wasm_app(wasm_filename, argv):
with digest_filename.open("rb") as digest_file:
if digest_file.read() != module_digest:
raise Exception("cache miss")
with cache_filename.open("rb") as cache_file:
module = wasmtime.Module.deserialize(engine, cache_file.read())
module = wasmtime.Module.deserialize_file(engine, str(cache_filename))
except:
print("Preparing to run {}. This might take a while...".format(argv[0]), file=sys.stderr)
module = wasmtime.Module(engine, module_binary)
Expand Down

0 comments on commit 9af4321

Please sign in to comment.