dioxus/packages/interpreter
Jonathan Kelley 0a3291084f
Use a VecDequeue instead of a vec for bytes (#2246)
* Fix: add both the rAF queue and vecdequeue

* Fix: Take before recycle
2024-04-04 16:29:28 -07:00
..
src Use a VecDequeue instead of a vec for bytes (#2246) 2024-04-04 16:29:28 -07:00
tests extend interpreter base class with platform methods 2024-02-27 12:31:11 -08:00
.gitignore extend interpreter base class with platform methods 2024-02-27 12:31:11 -08:00
build.rs Fix #2043: use formvalue instead of String for forms (#2103) 2024-03-18 18:21:08 -07:00
Cargo.toml bump sledgehammer bindgen to stable 2024-03-13 19:05:42 -05:00
NOTES.md extend interpreter base class with platform methods 2024-02-27 12:31:11 -08:00
README.md Fix Outdated README.md (#2147) 2024-03-26 19:17:02 -07:00
tsconfig.json fix navigating when files are dropped 2024-03-01 23:37:46 -08:00

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.