[package]
name = "rustpython_wasm"
version = "0.1.2"
authors = ["RustPython Team"]
license = "MIT"
description = "A Python-3 (CPython >= 3.5.0) Interpreter written in Rust, compiled to WASM"
repository = "https://github.com/RustPython/RustPython/tree/master/wasm/lib"
edition = "2018"

[lib]
crate-type = ["cdylib", "rlib"]

[features]
default = ["freeze-stdlib"]
freeze-stdlib = ["rustpython-vm/freeze-stdlib"]

[dependencies]
rustpython-parser = { path = "../../parser" }
rustpython-common = { path = "../../common" }
# no threading feature for rustpython-vm -- doesn't much matter anyway, but it might be more optimized
rustpython-vm = { path = "../../vm", default-features = false, features = ["compile-parse"]  }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
serde-wasm-bindgen = "0.1"
serde = "1.0"
js-sys = "0.3"
# make parking_lot use wasm-bingden for instant
parking_lot = { version = "0.11", features = ["wasm-bindgen"] }

[dependencies.web-sys]
version = "0.3"
features = [
    "console",
    "Document",
    "Element",
    "Window",
    "Headers",
    "Request",
    "RequestInit",
    "Response"
]

[package.metadata.wasm-pack.profile.release]
wasm-opt = false#["-O1"]
