From a2d31a22f262346d27ebed31253acc3d1a2e50c9 Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Tue, 21 Nov 2023 07:04:59 +0800 Subject: [PATCH] feat(examples): htmlx --- examples/htmlx/Cargo.toml | 10 ++++++++++ examples/htmlx/public/index.html | 12 ++++++++++++ examples/htmlx/src/main.rs | 3 +++ 3 files changed, 25 insertions(+) create mode 100644 examples/htmlx/Cargo.toml create mode 100644 examples/htmlx/public/index.html create mode 100644 examples/htmlx/src/main.rs diff --git a/examples/htmlx/Cargo.toml b/examples/htmlx/Cargo.toml new file mode 100644 index 00000000..d02315c1 --- /dev/null +++ b/examples/htmlx/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "htmlx" +version = "0.1.0" +edition.workspace = true +publish = false + +[dependencies] +viz.workspace = true + +tokio = { workspace = true, features = [ "rt-multi-thread", "macros" ] } diff --git a/examples/htmlx/public/index.html b/examples/htmlx/public/index.html new file mode 100644 index 00000000..b1e330bd --- /dev/null +++ b/examples/htmlx/public/index.html @@ -0,0 +1,12 @@ + + + + Viz & htmlx + + + +
+ Put To Messages +
+ + diff --git a/examples/htmlx/src/main.rs b/examples/htmlx/src/main.rs new file mode 100644 index 00000000..e7a11a96 --- /dev/null +++ b/examples/htmlx/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}