summaryrefslogtreecommitdiffstats
path: root/examples/counter
diff options
context:
space:
mode:
Diffstat (limited to 'examples/counter')
-rw-r--r--examples/counter/Cargo.toml2
-rw-r--r--examples/counter/index.html12
2 files changed, 13 insertions, 1 deletions
diff --git a/examples/counter/Cargo.toml b/examples/counter/Cargo.toml
index a763cd78..e31f440f 100644
--- a/examples/counter/Cargo.toml
+++ b/examples/counter/Cargo.toml
@@ -2,7 +2,7 @@
name = "counter"
version = "0.1.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
-edition = "2018"
+edition = "2021"
publish = false
[dependencies]
diff --git a/examples/counter/index.html b/examples/counter/index.html
new file mode 100644
index 00000000..d2e368e4
--- /dev/null
+++ b/examples/counter/index.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" content="text/html; charset=utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>Counter - Iced</title>
+ <base data-trunk-public-url />
+</head>
+<body>
+<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z" data-bin="counter" />
+</body>
+</html>