0.3.0
Features
Extension
-
#54 Bound slice to the size of the memory view —allow to write
memory_view[0:]
with no error— (@Hywan) -
#51 Add
wasmer.__core_version__
to get the runtime [Wasmer] version (@Hywan) -
#48 Support module serialization with
Module.serialize
andModule.deserialize
(@Hywan)from wasmer import Module # Get the Wasm bytes. wasm_bytes = open('my_program.wasm', 'rb').read() # Compile the bytes into a Wasm module. module1 = Module(wasm_bytes) # Serialize the module. serialized_module = module1.serialize() # Let's forget about the module for this example. del module1 # Deserialize the module. module2 = Module.deserialize(serialized_module) # Instantiate and use it. result = module2.instantiate().exports.sum(1, 2)
-
#47 Introduce the
Module
class, withModule.validate
andModule.instantiate
(@Hywan)from wasmer import Module # Get the Wasm bytes. wasm_bytes = open('my_program.wasm', 'rb').read() # Compile the Wasm bytes into a Wasm module. module = Module(wasm_bytes) # Instantiate the Wasm module. instance = module.instantiate() # Call a function on it. result = instance.exports.sum(1, 2) print(result) # 3
-
#27 Add
wasmer.__version__
to get the extension version (@Mec-iS)
Runtime
- #59 Update Wasmer to 0.5.5 (@Hywan)
- #42 Update Wasmer to 0.4.2 (@Hywan)
- #26 Update Wasmer to 0.4.0 (@Hywan)
Bug/security fixes
- #52 Update smallvec (@Hywan)
- #46 Update pyo3 (@Hywan)
- #38 Handle exported functions that return nothing, aka void functions (@Hywan)
Documentation
- #55 More Python idiomatic examples (@Hywan)
- #43 Add the
greet
example (@Hywan) - #36 Improve code documentation (@Mec-iS)
- #25 Fix typos (@Hywan)
- #19 Fix comments in examples (@Hywan)