wip: prepare to change our fragment pattern. Add some more docs

This commit is contained in:
Jonathan Kelley committed 2021-12-18 15:17:32 -05:00
1 parent 2b928372fb
commit 2c3a046426
10 files changed
+108 -71

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
[package]
name = "dioxus-desktop"
version = "0.0.0"
version = "0.1.0"
authors = ["Jonathan Kelley"]
edition = "2018"
description = "Dioxus VirtualDOM renderer for a remote webview instance"
@@ -12,7 +12,7 @@ keywords = ["dom", "ui", "gui", "react", "wasm"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dioxus-core = { path = "../core", version ="^0.1.3", features = ["serialize"] }
dioxus-core = { path = "../core", version = "^0.1.3", features = ["serialize"] }
argh = "0.1.4"
serde = "1.0.120"
serde_json = "1.0.61"
@@ -20,7 +20,7 @@ thiserror = "1.0.23"
log = "0.4.13"
html-escape = "0.2.9"
wry = "0.12.2"
futures-channel = "0.3.18"
futures-channel = "0.3"
tokio = { version = "1.12.0", features = [
"sync",
"rt-multi-thread",
+10 -14
View File
@@ -1,16 +1,10 @@
//! Dioxus Desktop Renderer
//!
//! Render the Dioxus VirtualDom using the platform's native WebView implementation.
//!
mod cfg;
mod escape;
mod events;
pub use wry;
pub use wry::application as tao;
// mod desktop_context;
use cfg::DesktopConfig;
use dioxus_core::*;
use std::{
@@ -18,15 +12,17 @@ use std::{
sync::atomic::AtomicBool,
sync::{Arc, RwLock},
};
use tao::{
accelerator::{Accelerator, SysMods},
event::{Event, StartCause, WindowEvent},
event_loop::{ControlFlow, EventLoop, EventLoopWindowTarget},
keyboard::{KeyCode, ModifiersState},
menu::{MenuBar, MenuItem},
window::{Window, WindowId},
};
pub use wry;
pub use wry::application as tao;
use wry::{
application::{
accelerator::{Accelerator, SysMods},
event::{Event, StartCause, WindowEvent},
event_loop::{ControlFlow, EventLoop, EventLoopWindowTarget},
keyboard::{KeyCode, ModifiersState},
menu::{MenuBar, MenuItem},
window::{Window, WindowId},
},
webview::RpcRequest,
webview::{WebView, WebViewBuilder},
};