[workspace]
members = ["parser", "parser/visitable-derive", "parser/generator", "checker"]

[package]
name = "ezno"
description = "A JavaScript checker and compiler. For use as a library or cli"
authors = ["Ben <kaleidawave@gmail.com>"]
version = "0.0.7"
edition = "2021"
license = "MIT"
homepage = "https://kaleidawave.github.io/posts/introducing-ezno/"
repository = "https://github.com/kaleidawave/ezno"
default-run = "ezno"
keywords = ["javascript", "typescript", "type-checker"]
categories = ["compilers"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "ezno_lib"
path = "src/lib.rs"
# cdylib is for WASM
crate-type = ["cdylib", "rlib"]

[[bin]]
name = "ezno"
path = "src/main.rs"

[dependencies]
parser = { path = "./parser", version = "0.0.3", package = "ezno-parser" }
checker = { path = "./checker", version = "0.0.1", package = "ezno-checker" }
# ezno-web-framework = { path = "./plugins/web" }

console = "0.14.1"
codespan-reporting = "0.11.1"
argh = "0.1.6"
base64 = "0.13.0"
enum-variants-strings = "0.2.2"

[target.'cfg(target_family = "wasm")'.dependencies]
wasm-bindgen = "0.2"
serde = { version = "1.0", features = ["derive"] }
serde-wasm-bindgen = "0.5.0"

[target.'cfg(not(target_family = "wasm"))'.dependencies]
multiline-term-input = "0.1.0"
notify = "4.0.17"
