dioxus/packages/router/Cargo.toml

67 lines
2.2 KiB
TOML
Raw Normal View History

2021-11-03 04:35:56 +00:00
[package]
2022-02-01 20:13:18 +00:00
name = "dioxus-router"
2023-08-01 00:30:18 +00:00
authors = ["Jonathan Kelley", "Evan Almloff"]
version = { workspace = true }
2024-01-19 03:27:55 +00:00
edition = "2021"
description = "Cross-platform router for Dioxus apps"
license = "MIT OR Apache-2.0"
2022-02-01 19:40:29 +00:00
repository = "https://github.com/DioxusLabs/dioxus/"
2022-02-01 20:13:18 +00:00
homepage = "https://dioxuslabs.com"
keywords = ["dom", "ui", "gui", "react", "wasm"]
2021-11-03 04:35:56 +00:00
[dependencies]
2024-01-16 01:14:11 +00:00
dioxus-lib = { workspace = true }
dioxus-router-macro = { workspace = true }
2023-05-23 16:22:57 +00:00
gloo = { version = "0.8.0", optional = true }
2023-09-06 22:47:33 +00:00
tracing = { workspace = true }
urlencoding = "2.1.3"
serde = { version = "1", features = ["derive"], optional = true }
Implement LiveView Router Integration (#1505) * Fix GoForwardButton calling can_go_back instead of can_go_forward * Add first draft of LiveviewHistory * Add external URL redirect * Lock evaluator channel outside loop * Add liveview to router examples * fixup! Add liveview to router examples * Communicate with liveview server on page load * Add PopState event to Liveview routing * Call updater callback from liveview history * Add rudimentary PopState functionality to liveview router. * Fix linter errors * Refactor * Fix navigator external redirection not working. * Add go back and go forward buttons to router examples * Finish functionality for timeline stack in liveview router * Add docs to LiveviewHistory * Replace Liveview history context attachment with constructor that takes context * Fix go forward/backward history/future shuffle * Support history across entire liveview session, if contiguous page jumps. * Remove unnecessary bounds * Add query and hash to location string * Run rustfmt * fix: Update server function docs link (#1489) * liveview: Add `interpreter_glue_relative_uri (#1481) * liveview: Add `interpreter_glue_relative_uri` By utilizing `window.location.host` in the client-side JavaScript, we can easily derive the WebSocket URI from a relative path URI. This approach obviates the need for host address retrieval on the server side, unlike the method of serving glue code in liveview using `interpreter_glue`. * liveview: Merge `.._relative_url` functionality - Merged `.._relative_url` to current API `interpreter_glue`. - Edit axum example to work with new feature. * liveview: Fix clippy warning * Rename modules to use snake_case (#1498) * Change Scope into &ScopeState * Move synchronization of state into router and make it opt-in --------- Co-authored-by: Marc Espín <mespinsanz@gmail.com> Co-authored-by: Seungwoo Kang <ki6080@gmail.com> Co-authored-by: Leonard <tigerros.gh@gmail.com> Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-10-26 19:19:51 +00:00
serde_json = { version = "1.0.91", optional = true }
url = "2.3.1"
wasm-bindgen = { workspace = true, optional = true }
2023-07-20 17:55:52 +00:00
web-sys = { version = "0.3.60", optional = true, features = [
"ScrollRestoration",
] }
2023-06-01 16:03:44 +00:00
js-sys = { version = "0.3.63", optional = true }
gloo-utils = { version = "0.1.6", optional = true }
Implement LiveView Router Integration (#1505) * Fix GoForwardButton calling can_go_back instead of can_go_forward * Add first draft of LiveviewHistory * Add external URL redirect * Lock evaluator channel outside loop * Add liveview to router examples * fixup! Add liveview to router examples * Communicate with liveview server on page load * Add PopState event to Liveview routing * Call updater callback from liveview history * Add rudimentary PopState functionality to liveview router. * Fix linter errors * Refactor * Fix navigator external redirection not working. * Add go back and go forward buttons to router examples * Finish functionality for timeline stack in liveview router * Add docs to LiveviewHistory * Replace Liveview history context attachment with constructor that takes context * Fix go forward/backward history/future shuffle * Support history across entire liveview session, if contiguous page jumps. * Remove unnecessary bounds * Add query and hash to location string * Run rustfmt * fix: Update server function docs link (#1489) * liveview: Add `interpreter_glue_relative_uri (#1481) * liveview: Add `interpreter_glue_relative_uri` By utilizing `window.location.host` in the client-side JavaScript, we can easily derive the WebSocket URI from a relative path URI. This approach obviates the need for host address retrieval on the server side, unlike the method of serving glue code in liveview using `interpreter_glue`. * liveview: Merge `.._relative_url` functionality - Merged `.._relative_url` to current API `interpreter_glue`. - Edit axum example to work with new feature. * liveview: Fix clippy warning * Rename modules to use snake_case (#1498) * Change Scope into &ScopeState * Move synchronization of state into router and make it opt-in --------- Co-authored-by: Marc Espín <mespinsanz@gmail.com> Co-authored-by: Seungwoo Kang <ki6080@gmail.com> Co-authored-by: Leonard <tigerros.gh@gmail.com> Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-10-26 19:19:51 +00:00
dioxus-liveview = { workspace = true, optional = true }
dioxus-ssr = { workspace = true, optional = true }
2024-01-17 20:02:49 +00:00
dioxus-fullstack = { workspace = true, optional = true }
tokio = { workspace = true, features = ["full"], optional = true }
2024-01-18 20:41:19 +00:00
dioxus-cli-config = { workspace = true }
2021-11-03 04:35:56 +00:00
[features]
2024-01-18 20:41:19 +00:00
default = []
2023-06-24 20:21:12 +00:00
ssr = ["dioxus-ssr", "tokio"]
Implement LiveView Router Integration (#1505) * Fix GoForwardButton calling can_go_back instead of can_go_forward * Add first draft of LiveviewHistory * Add external URL redirect * Lock evaluator channel outside loop * Add liveview to router examples * fixup! Add liveview to router examples * Communicate with liveview server on page load * Add PopState event to Liveview routing * Call updater callback from liveview history * Add rudimentary PopState functionality to liveview router. * Fix linter errors * Refactor * Fix navigator external redirection not working. * Add go back and go forward buttons to router examples * Finish functionality for timeline stack in liveview router * Add docs to LiveviewHistory * Replace Liveview history context attachment with constructor that takes context * Fix go forward/backward history/future shuffle * Support history across entire liveview session, if contiguous page jumps. * Remove unnecessary bounds * Add query and hash to location string * Run rustfmt * fix: Update server function docs link (#1489) * liveview: Add `interpreter_glue_relative_uri (#1481) * liveview: Add `interpreter_glue_relative_uri` By utilizing `window.location.host` in the client-side JavaScript, we can easily derive the WebSocket URI from a relative path URI. This approach obviates the need for host address retrieval on the server side, unlike the method of serving glue code in liveview using `interpreter_glue`. * liveview: Merge `.._relative_url` functionality - Merged `.._relative_url` to current API `interpreter_glue`. - Edit axum example to work with new feature. * liveview: Fix clippy warning * Rename modules to use snake_case (#1498) * Change Scope into &ScopeState * Move synchronization of state into router and make it opt-in --------- Co-authored-by: Marc Espín <mespinsanz@gmail.com> Co-authored-by: Seungwoo Kang <ki6080@gmail.com> Co-authored-by: Leonard <tigerros.gh@gmail.com> Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-10-26 19:19:51 +00:00
liveview = ["dioxus-liveview", "tokio", "dep:serde", "serde_json"]
2022-03-03 04:45:36 +00:00
wasm_test = []
2023-11-21 20:46:47 +00:00
serde = ["dep:serde", "gloo-utils?/serde"]
2023-06-01 16:03:44 +00:00
web = ["gloo", "web-sys", "wasm-bindgen", "gloo-utils", "js-sys"]
2024-01-17 20:02:49 +00:00
fullstack = ["dioxus-fullstack"]
2021-11-19 05:49:04 +00:00
[dev-dependencies]
Implement LiveView Router Integration (#1505) * Fix GoForwardButton calling can_go_back instead of can_go_forward * Add first draft of LiveviewHistory * Add external URL redirect * Lock evaluator channel outside loop * Add liveview to router examples * fixup! Add liveview to router examples * Communicate with liveview server on page load * Add PopState event to Liveview routing * Call updater callback from liveview history * Add rudimentary PopState functionality to liveview router. * Fix linter errors * Refactor * Fix navigator external redirection not working. * Add go back and go forward buttons to router examples * Finish functionality for timeline stack in liveview router * Add docs to LiveviewHistory * Replace Liveview history context attachment with constructor that takes context * Fix go forward/backward history/future shuffle * Support history across entire liveview session, if contiguous page jumps. * Remove unnecessary bounds * Add query and hash to location string * Run rustfmt * fix: Update server function docs link (#1489) * liveview: Add `interpreter_glue_relative_uri (#1481) * liveview: Add `interpreter_glue_relative_uri` By utilizing `window.location.host` in the client-side JavaScript, we can easily derive the WebSocket URI from a relative path URI. This approach obviates the need for host address retrieval on the server side, unlike the method of serving glue code in liveview using `interpreter_glue`. * liveview: Merge `.._relative_url` functionality - Merged `.._relative_url` to current API `interpreter_glue`. - Edit axum example to work with new feature. * liveview: Fix clippy warning * Rename modules to use snake_case (#1498) * Change Scope into &ScopeState * Move synchronization of state into router and make it opt-in --------- Co-authored-by: Marc Espín <mespinsanz@gmail.com> Co-authored-by: Seungwoo Kang <ki6080@gmail.com> Co-authored-by: Leonard <tigerros.gh@gmail.com> Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-10-26 19:19:51 +00:00
axum = { version = "0.6.1", features = ["ws"] }
dioxus = { workspace = true }
# dioxus-liveview = { workspace = true, features = ["axum"] }
2022-12-13 09:46:30 +00:00
dioxus-ssr = { path = "../ssr" }
2023-07-27 04:02:39 +00:00
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
2022-12-13 20:38:27 +00:00
2023-06-24 21:07:48 +00:00
[[example]]
name = "static_generation"
required-features = ["ssr"]
2022-03-02 22:57:57 +00:00
[[bench]]
name = "incremental"
2023-06-24 21:07:48 +00:00
required-features = ["ssr"]
harness = false
2022-12-15 13:46:40 +00:00
# [target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
# dioxus-desktop = { path = "../desktop" }
2022-03-02 22:57:57 +00:00
2022-12-15 13:46:40 +00:00
[target.'cfg(target_family = "wasm")'.dev-dependencies]
2022-12-16 11:55:50 +00:00
console_error_panic_hook = "0.1.7"
dioxus-router = { path = ".", features = ["web"] }
# dioxus-web = { workspace = true }
2022-12-16 11:33:46 +00:00
gloo = "0.8.0"
wasm-bindgen-test = "0.3.33"