Only apply subsystem to final binary, not cdylibs (#5002)
This commit is contained in:
1 parent
75d9ece3af
commit
84efc00757
10 files changed
+177
-60
No files matched your search
@@ -0,0 +1,23 @@
|
||||
use dioxus::LaunchBuilder;
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
LaunchBuilder::new()
|
||||
.with_cfg(
|
||||
dioxus::desktop::Config::new()
|
||||
.with_windows_browser_args("--remote-debugging-port=8787"),
|
||||
)
|
||||
.launch(app);
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
let mut count = use_signal(|| 0);
|
||||
|
||||
rsx! {
|
||||
h1 { "High-five counter: {count}" }
|
||||
button {
|
||||
id: "increment-button",
|
||||
onclick: move |_| count += 1, "Up high!"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user