diff --git a/Cargo.toml b/Cargo.toml index 3e481e7..db1ff1f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,15 @@ [package] -name = "egui_template" +name = "{{project-name}}" version = "0.1.0" edition = "2024" +description = "{{description}}" +authors = [ "{{authors}}" ] +license = "MIT OR Apache-2.0" +readme = "README.md" [dependencies] anyhow = "1.0" -thiserror = "2.0" +#thiserror = "2.0" dotenvy = "0.15" tokio = { version = "1.48.0", features = ["rt", "rt-multi-thread", "macros", "time"] } diff --git a/README.md b/README.md new file mode 100644 index 0000000..8eb05f1 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +To run this egui app with hot-patching enabled, first make sure you have the Dioxus CLI installed: + +```shell +cargo binstall dioxus-cli +``` + +Then, run the following: + +```shell +dx serve --hot-patch +``` + +Building in release mode will turn subsecond calls into no-ops. +Subsecond also currently doesn't work for binaries with a backing library, so all hot-patchable code must be +in the binary crate. + +Refer to [subsecond docs]() for more info. diff --git a/cargo-generate.toml b/cargo-generate.toml new file mode 100644 index 0000000..58fa42a --- /dev/null +++ b/cargo-generate.toml @@ -0,0 +1,6 @@ +[template] +ignore = [ + ".idea", + ".jj", + "target", +]