Added basic example of Wasmer-js

This commit is contained in:
Syrus Akbary
2021-06-21 21:14:16 -07:00
parent 7ddf61a3db
commit 430113dbc2
30 changed files with 7558 additions and 0 deletions

4
lib/js-api/src/utils.rs Normal file
View File

@@ -0,0 +1,4 @@
/// Check if the provided bytes are wasm-like
pub fn is_wasm(bytes: impl AsRef<[u8]>) -> bool {
bytes.as_ref().starts_with(b"\0asm")
}