Skip to content

Commit 300aca7

Browse files
Added version to the page
1 parent 09a220e commit 300aca7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "factorio-web-calculator"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55

66
[dependencies]

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ impl Component for Calculator {
374374
html! {
375375
<div id="calc">
376376
<p> { "This is a calculator" } </p>
377+
<p> { format!("Version: {}", env!("CARGO_PKG_VERSION")) } </p>
377378
<p> { "Source code is available at " } <a href={"https://github.com/JohnTheCoolingFan/factorio-web-calculator"}>{"GitHub repo"}</a> </p>
378379
<p> { "Please report any issues you encounter" } </p>
379380
<p> <Link<Route> to={Route::Settings}>{"Settings"}</Link<Route>> </p>

0 commit comments

Comments
 (0)