Use cargo workspaces

This commit is contained in:
2022-03-10 22:45:02 +01:00
parent 6d16f34dd4
commit 6d2ae21956
30 changed files with 936 additions and 368 deletions

12
web/Cargo.toml Normal file
View File

@@ -0,0 +1,12 @@
[package]
name = "contextswitch-web"
version = "0.1.0"
edition = "2021"
authors = ["David Rousselie <david@rousselie.name>"]
[[bin]]
path = "src/main.rs"
name = "contextswitch-web"
[dependencies]
yew = "0.19"

1
web/Makefile.toml Normal file
View File

@@ -0,0 +1 @@
extend = "../Makefile.toml"

7
web/index.html Normal file
View File

@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Contextswitch</title>
</head>
</html>

12
web/src/main.rs Normal file
View File

@@ -0,0 +1,12 @@
use yew::prelude::*;
#[function_component(App)]
fn app() -> Html {
html! {
<h1>{ "Hello World" }</h1>
}
}
fn main() {
yew::start_app::<App>();
}