From 815433e4902e0bf7a797d9a29ffd820dca3e40de Mon Sep 17 00:00:00 2001 From: Able Date: Thu, 25 Nov 2021 18:58:51 -0600 Subject: [PATCH] added an example and a bit of work on defining useful structures --- .gitignore | 1 + Cargo.lock | 7 +++++++ Cargo.toml | 8 ++++++++ mesh_examples/simple.mesh | 1 + src/lib.rs | 13 +++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 mesh_examples/simple.mesh create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..f592628 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "meshup" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..587c18d --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "meshup" +version = "0.1.0" +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/mesh_examples/simple.mesh b/mesh_examples/simple.mesh new file mode 100644 index 0000000..2965834 --- /dev/null +++ b/mesh_examples/simple.mesh @@ -0,0 +1 @@ +# Hello World diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..227ec68 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,13 @@ +pub struct RGBA { + red: u8, + green: u8, + blue: u8, + alpha: u8, +} + +pub struct Header { + label: String, + level: u8, +} + +pub fn parse() {}