2021-01-15 01:56:28 +00:00
|
|
|
[package]
|
|
|
|
name = "dioxus-web"
|
2023-08-01 01:49:54 +00:00
|
|
|
version = { workspace = true }
|
2021-12-15 21:04:27 +00:00
|
|
|
authors = ["Jonathan Kelley"]
|
2024-01-19 03:27:55 +00:00
|
|
|
edition = "2021"
|
2023-07-08 16:04:27 +00:00
|
|
|
description = "Web renderer for Dioxus using websys"
|
2023-07-20 17:00:07 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2021-12-15 21:04:27 +00:00
|
|
|
repository = "https://github.com/DioxusLabs/dioxus/"
|
2024-03-28 01:42:07 +00:00
|
|
|
homepage = "https://dioxuslabs.com/learn/0.5/getting_started"
|
2021-12-15 21:06:13 +00:00
|
|
|
keywords = ["dom", "ui", "gui", "react", "wasm"]
|
2021-01-15 01:56:28 +00:00
|
|
|
|
2021-01-16 06:30:48 +00:00
|
|
|
[dependencies]
|
2024-07-02 03:50:36 +00:00
|
|
|
dioxus-core = { workspace = true }
|
2023-08-04 17:51:17 +00:00
|
|
|
dioxus-html = { workspace = true, features = ["wasm-bind"] }
|
Hotreloading of `for/if/body`, formatted strings, literals, component props, nested rsx, light CLI rewrite, cli TUI (#2258)
Hotreload the contents of for loops, if chains, component bodies, props, attributes, and any literals discovered in rsx!
Add a TUI renderer to the CLI.
Improve the CLI build system to be async and parallel.
Refactor RSX to allow partial expansion of expressions.
Merge autofmt implementations for consistency.
Merge the representation of elements and components under the hood.
Add a diagnostics system for rsx for improved error messages.
Drop interprocess and move to websockets for communication between the CLI and the server.
Assign IDs to nodes and attributes in a stable way to be used in non compiler contexts.
Add hotreloading to any body of component/for loop/if chain/etc.
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
Co-authored-by: Liam Mitchell <liamkarlmitchell@gmail.com>
2024-07-18 02:11:18 +00:00
|
|
|
dioxus-hot-reload = { workspace = true, features = ["client"] }
|
|
|
|
dioxus-signals = { workspace = true }
|
2023-06-19 19:29:11 +00:00
|
|
|
dioxus-interpreter-js = { workspace = true, features = [
|
2023-06-04 16:29:34 +00:00
|
|
|
"minimal_bindings",
|
2024-01-19 03:27:55 +00:00
|
|
|
"webonly",
|
2022-03-17 14:51:23 +00:00
|
|
|
] }
|
2024-02-02 20:47:59 +00:00
|
|
|
generational-box = { workspace = true }
|
2022-03-09 19:24:05 +00:00
|
|
|
|
2022-02-04 06:56:54 +00:00
|
|
|
js-sys = "0.3.56"
|
2024-01-06 22:56:07 +00:00
|
|
|
wasm-bindgen = { workspace = true }
|
2022-02-04 06:56:54 +00:00
|
|
|
wasm-bindgen-futures = "0.4.29"
|
2023-09-06 22:47:33 +00:00
|
|
|
tracing = { workspace = true }
|
2023-06-19 19:29:11 +00:00
|
|
|
rustc-hash = { workspace = true }
|
2022-01-24 07:57:56 +00:00
|
|
|
console_error_panic_hook = { version = "0.1.7", optional = true }
|
2024-03-13 09:13:37 +00:00
|
|
|
futures-util = { workspace = true, features = [
|
|
|
|
"std",
|
|
|
|
"async-await",
|
|
|
|
"async-await-macro",
|
|
|
|
] }
|
2023-06-19 19:29:11 +00:00
|
|
|
futures-channel = { workspace = true }
|
2024-07-02 03:50:36 +00:00
|
|
|
serde_json = { version = "1.0", optional = true }
|
|
|
|
serde = { version = "1.0", optional = true }
|
2024-01-15 17:46:00 +00:00
|
|
|
serde-wasm-bindgen = { version = "0.5.0", optional = true }
|
2024-07-02 03:50:36 +00:00
|
|
|
|
|
|
|
ciborium = { workspace = true, optional = true }
|
2022-02-01 20:44:08 +00:00
|
|
|
|
2021-01-16 06:30:48 +00:00
|
|
|
[dependencies.web-sys]
|
2022-02-04 06:56:54 +00:00
|
|
|
version = "0.3.56"
|
2021-01-16 06:30:48 +00:00
|
|
|
features = [
|
|
|
|
"Document",
|
|
|
|
"HtmlElement",
|
2021-02-26 17:58:03 +00:00
|
|
|
"HtmlInputElement",
|
2021-06-17 03:37:55 +00:00
|
|
|
"HtmlSelectElement",
|
|
|
|
"HtmlTextAreaElement",
|
2022-01-22 19:53:59 +00:00
|
|
|
"HtmlFormElement",
|
2021-01-16 06:30:48 +00:00
|
|
|
"Text",
|
2024-07-02 22:31:18 +00:00
|
|
|
"Comment",
|
2021-01-16 06:30:48 +00:00
|
|
|
"Window",
|
2023-09-17 23:56:59 +00:00
|
|
|
"DataTransfer",
|
2024-03-13 09:13:37 +00:00
|
|
|
"console",
|
|
|
|
"NodeList",
|
2024-08-15 01:23:49 +00:00
|
|
|
"CloseEvent",
|
|
|
|
"CustomEvent",
|
2021-05-16 06:55:16 +00:00
|
|
|
]
|
2021-02-15 19:14:28 +00:00
|
|
|
|
2022-01-24 07:57:56 +00:00
|
|
|
[features]
|
2024-07-18 01:54:03 +00:00
|
|
|
default = ["panic_hook", "mounted", "file_engine", "hot_reload", "document"]
|
2024-06-18 23:39:15 +00:00
|
|
|
panic_hook = ["dep:console_error_panic_hook"]
|
2024-07-18 01:54:03 +00:00
|
|
|
hydrate = ["web-sys/Comment", "ciborium", "dep:serde"]
|
2024-03-13 09:13:37 +00:00
|
|
|
mounted = ["web-sys/Element", "dioxus-html/mounted"]
|
2023-07-28 22:38:07 +00:00
|
|
|
file_engine = [
|
2024-07-02 03:50:36 +00:00
|
|
|
"dioxus-html/file-engine",
|
2023-08-26 02:28:44 +00:00
|
|
|
]
|
2024-07-02 03:50:36 +00:00
|
|
|
hot_reload = ["web-sys/MessageEvent", "web-sys/WebSocket", "web-sys/Location", "dep:serde_json", "dep:serde", "dioxus-core/serialize"]
|
2024-07-18 01:54:03 +00:00
|
|
|
document = ["dioxus-html/document", "dep:serde-wasm-bindgen", "dep:serde_json", "dep:serde"]
|
2021-11-19 05:49:04 +00:00
|
|
|
|
2022-01-07 05:33:09 +00:00
|
|
|
[dev-dependencies]
|
2024-07-02 03:50:36 +00:00
|
|
|
dioxus = { workspace = true, default-features = true }
|
2022-02-04 06:56:54 +00:00
|
|
|
wasm-bindgen-test = "0.3.29"
|
2024-01-15 19:23:35 +00:00
|
|
|
dioxus-ssr = { workspace = true, default-features = false }
|
2023-04-09 14:54:18 +00:00
|
|
|
gloo-timers = "0.2.3"
|
|
|
|
gloo-dialogs = "0.1.1"
|
2023-08-01 01:49:54 +00:00
|
|
|
dioxus-web = { path = ".", features = ["hydrate"] }
|
2023-09-12 14:07:57 +00:00
|
|
|
tracing-wasm = "0.2.1"
|
2024-05-28 20:05:55 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|