Tobias Domhan 6755accbdc fix: Handle unicode in webview events. (#3386) há 5 meses atrás
..
src 6755accbdc fix: Handle unicode in webview events. (#3386) há 5 meses atrás
tests b5447c162f extend interpreter base class with platform methods há 1 ano atrás
.gitignore b5447c162f extend interpreter base class with platform methods há 1 ano atrás
Cargo.toml 143ad749ea Split out isrg from ssr and reorient build graph to make interpreter build 2x faster (#2969) há 9 meses atrás
NOTES.md b5447c162f extend interpreter base class with platform methods há 1 ano atrás
README.md 66a50240bc Update all docs links to 0.6, release 0.6 (#3225) há 6 meses atrás
build.rs 88af3e7eff Hotreloading of `for/if/body`, formatted strings, literals, component props, nested rsx, light CLI rewrite, cli TUI (#2258) há 11 meses atrás
tsconfig.json 2f49a89638 Add the `onresize` event handler to Element (#2479) há 10 meses atrás

README.md

dioxus-interpreter-js

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

dioxus-interpreter-js provides the high-performance JavaScript glue that interprets the stream of edits produced by the Dioxus VirtualDom and converts them into mutations on the actual web DOM.

This crate features bindings for the web and sledgehammer for increased performance.

Architecture

We use TypeScript to write the bindings and a very simple build.rs along with bun to convert them to javascript, minify them, and glue them into the rest of the project.

Not every snippet of JS will be used, so we split out the snippets from the core interpreter.

In theory, we could use Rust in the browser to do everything these bindings are doing. In reality, we want to stick with JS to skip the need for a WASM build step when running the LiveView and WebView renderers. We also want to use JS to prevent diverging behavior of things like canceling events, uploading files, and collecting form inputs. These details are tough to ensure 1:1 compatibility when implementing them in two languages.

If you want to contribute to the bindings, you'll need to have the typescript compiler installed on your machine as well as bun:

https://bun.sh/docs/installation

Contributing

  • Report issues on our issue tracker.
  • Join the discord and ask questions!

License

This project is licensed under the MIT license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.