[package]
edition = "2021"
name = "tishlang_wasm_runtime"
version = "3.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tish VM compiled to WebAssembly (browser + Wasmtime/WASI)"
readme = false
license-file = "LICENSE"
repository = "https://github.com/tishlang/tish"
[features]
browser = [
"dep:wasm-bindgen",
"tishlang_vm/wasm",
]
fs = ["tishlang_vm/fs"]
gpu = [
"browser",
"dep:js-sys",
]
http = ["tishlang_vm/http"]
process = ["tishlang_vm/process"]
promise = ["tishlang_vm/promise"]
regex = ["tishlang_vm/regex"]
timers = ["tishlang_vm/timers"]
ws = ["tishlang_vm/ws"]
[lib]
name = "tishlang_wasm_runtime"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.tishlang_bytecode]
version = ">=0.1"
[dependencies.tishlang_core]
version = ">=0.1"
[dependencies.tishlang_vm]
version = ">=0.1"
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]