Feat: WIP on deserialize

This commit is contained in:
Jonathan Kelley committed 2021-02-15 14:14:28 -05:00
1 parent 8439994859
commit f22ff83190
15 files changed
+140 -21

No files matched your search

+3
View File
@@ -9,3 +9,6 @@ edition = "2018"
[dependencies]
web-view = "0.7.2"
dioxus-core = { path = "../core" }
[build-dependencies]
+5
View File
@@ -0,0 +1,5 @@
// todo
// build the .wasm bundle directly from this build script
// the bundle should never change (and not be linked to user code)]
fn main() {}
View File
Whitespace-only changes.
+20
View File
@@ -0,0 +1,20 @@
//! An example where the dioxus vdom is running in a native thread, interacting with webview
fn main() {
let html_content = "<div>Hello world!</div>";
web_view::builder()
.title("My Project")
.content(web_view::Content::Html(html_content))
.size(320, 480)
.resizable(true)
.debug(true)
.user_data(())
.invoke_handler(|view, arg| {
//
Ok(())
})
.run()
.unwrap();
}