[package] name = "simi" version = "0.2.1" authors = ["Limira"] license-file = "LICENSE" repository = "https://gitlab.com/limira-rs/simi" categories = ["wasm", "web-programming"] keywords = ["wasm", "framework", "front-end", "web"] description = "A framework for building wasm front-end web application in Rust" readme = "./README.md" edition = "2018" [features] default = ["proc-macro-hack"] nightly = ["simi-macros/nightly"] fetch = [ "web-sys/Request", "web-sys/Headers", "web-sys/Response", "web-sys/RequestMode", "web-sys/RequestInit", "futures", "wasm-bindgen-futures", ] fetch_json = [ "serde", "serde_json", ] js_callback_with_serde_arg = [ "serde", "wasm-bindgen/serde-serialize" ] [dependencies] wasm-bindgen = {version = "0.2"} js-sys = "0.3" log = "0.4" simi-macros = { version="0.2", path="macros" } proc-macro-hack = { version="0.5", optional=true } futures = { version="0.1", optional = true } wasm-bindgen-futures = { version="0.3", optional = true } serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } [dependencies.web-sys] version = "0.3" features = [ "console", # Element events 'Event', 'MouseEvent', 'InputEvent', 'FocusEvent', 'KeyboardEvent', 'UiEvent', 'WheelEvent', # Elements 'EventTarget', 'Document', 'Comment', 'Node', 'Text', 'Element', 'HtmlElement', 'HtmlInputElement', 'HtmlSelectElement', 'HtmlOptionsCollection', 'HtmlOptionElement', 'HtmlTextAreaElement', # Collections 'NodeList', 'DomTokenList', 'HtmlCollection', # Others 'Window', ] [target.'cfg(target_arch = "wasm32")'.dev-dependencies] wasm-bindgen-test = "0.2" simi-test = { version="0.1", path="test-helper" } #simi = { version="0.2", path=".", features=["nightly"] } [workspace] members = [ "macros", "test-helper", "examples/counter", "examples/counter-component", "examples/counter-nested-component", "examples/sub-app", "examples/fetch-json", "examples/todo", "stable-examples/counter", "stable-examples/counter-component", "stable-examples/counter-nested-component", "stable-examples/sub-app", "stable-examples/fetch-json", "stable-examples/todo", ]