Skip to content

Commit

Permalink
Add gui polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Vurv78 committed Jan 26, 2022
1 parent 1c7bae4 commit f3c23e8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
21 changes: 21 additions & 0 deletions autorun-gui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "autorun-gui"
version = "0.1.0"
authors = ["Vurv78 <[email protected]>"]
edition = "2021"
publish = false

[dependencies]
dioxus = { version = "0.1.7", features = ["desktop"] }
tokio = { version = "1", features = ["full"] }

atomic = "0.5.1"
message-io = "0.14.3"

log = "0.4.14"
simplelog = "0.11.2"

bincode = { version = "2.0.0-beta.0", features = ["derive"] }
autorun-shared = { path = "../autorun-shared", features = ["gui"] }

thiserror = "1.0.30"
18 changes: 18 additions & 0 deletions autorun-gui/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/// Autorun-gui
/// This is a gui to run alongside the ``gui`` version of autorun.
/// It works by having a server (autorun) client (autorun-gui) connection as to not disrupt the main thread (gmod)
/// This is a workaround for Dioxus and every other rust library that doesn't support running outside main thread, which would freeze gmod.

/*
mod logging;
mod app;
mod io;
*/

// Start app in current thread
pub fn main() {
// logging::init();

// app::launch();
// App will launch io
}

0 comments on commit f3c23e8

Please sign in to comment.