Skip to content

Commit

Permalink
lib fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olegdayo committed Jul 25, 2024
1 parent 3bf6bb1 commit 5f413b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name = "me"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "bin"
path = "src/main.rs"

[dependencies]
yew = { version = "0.21", features = ["csr"] }
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="icon" href="assets/images/gopher.ico" sizes="192x192">
<link data-trunk rel="sass" href="index.scss" />
<link data-trunk rel="copy-dir" href="assets" />
<link data-trunk rel="rust" data-bin="bin" />

<title>Oleg's personal page</title>
</head>
Expand Down
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use yew_router::{HashRouter, Switch};
#[function_component(App)]
pub fn app() -> Html {
html! {
<body>
<main>
<HashRouter>
<Switch<Route> render={switch} />
</HashRouter>
</body>
</main>
}
}

0 comments on commit 5f413b0

Please sign in to comment.