Switch to Yew in Cargo

This commit is contained in:
Emilia Allison 2023-05-21 21:54:04 -04:00
parent 1fd2119e1e
commit 240c37a94d
Signed by: emilia
GPG Key ID: 7A3F8997BFE894E0
3 changed files with 400 additions and 1306 deletions

1656
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -6,9 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dioxus = { git = "https://github.com/dioxuslabs/dioxus.git" }
dioxus-web = { git = "https://github.com/dioxuslabs/dioxus.git" }
fermi = { git = "https://github.com/dioxuslabs/dioxus" } # Yikes
yew = { version = "0.20.0", features = ["csr"] }
log = "0.4"
wasm-logger = "0.2"
regex = "1"

View File

@ -1,46 +0,0 @@
[application]
# dioxus project name
name = "Plate Tool"
# default platfrom
# you can also use `dioxus serve/build --platform XXX` to use other platform
# value: web | desktop
default_platform = "web"
# Web `build` & `serve` dist path
out_dir = "dist"
# resource (static) file folder
asset_dir = "public"
[web.app]
# HTML title tag content
title = "Plate Tool"
[web.watcher]
watch_path = ["src"]
index_on_404 = true
# include `assets` in web platform
[web.resource]
# CSS style file
style = []
# Javascript code file
script = []
[web.resource.dev]
# Javascript code file
# serve: [dev-server] only
script = []
[application.tools]
# use binaryen.wasm-opt for output Wasm file
# binaryen just will trigger in `web` platform
binaryen = { wasm_opt = true }