Use cargo workspaces
This commit is contained in:
12
web/Cargo.toml
Normal file
12
web/Cargo.toml
Normal 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
1
web/Makefile.toml
Normal file
@@ -0,0 +1 @@
|
||||
extend = "../Makefile.toml"
|
||||
7
web/index.html
Normal file
7
web/index.html
Normal 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
12
web/src/main.rs
Normal 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>();
|
||||
}
|
||||
Reference in New Issue
Block a user