commit 44294830af9bd2b476c6311d088acb9914fd12f5 Author: Joscha Date: Sat Mar 2 23:02:32 2024 +0100 Create project 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..44847ac --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,14 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "showbits-common" +version = "0.0.0" + +[[package]] +name = "showbits-thermal-printer" +version = "0.0.0" +dependencies = [ + "showbits-common", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..ad2405a --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,10 @@ +[workspace] +resolver = "2" +members = ["showbits-common", "showbits-thermal-printer"] + +[workspace.package] +version = "0.0.0" +edition = "2021" + +[workspace.dependencies] +showbits-common.path = "./showbits-common" diff --git a/README.md b/README.md new file mode 100644 index 0000000..578e38d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# showbits + +Displaying pixel-perfect images on esoteric devices. diff --git a/showbits-common/Cargo.toml b/showbits-common/Cargo.toml new file mode 100644 index 0000000..99e0271 --- /dev/null +++ b/showbits-common/Cargo.toml @@ -0,0 +1,4 @@ +[package] +name = "showbits-common" +version.workspace = true +edition.workspace = true diff --git a/showbits-common/src/lib.rs b/showbits-common/src/lib.rs new file mode 100644 index 0000000..9277de0 --- /dev/null +++ b/showbits-common/src/lib.rs @@ -0,0 +1,3 @@ +pub fn greet(who: &str) { + println!("Hello {who}!"); +} diff --git a/showbits-thermal-printer/Cargo.toml b/showbits-thermal-printer/Cargo.toml new file mode 100644 index 0000000..8339475 --- /dev/null +++ b/showbits-thermal-printer/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "showbits-thermal-printer" +version.workspace = true +edition.workspace = true + +[dependencies] +showbits-common.workspace = true diff --git a/showbits-thermal-printer/src/main.rs b/showbits-thermal-printer/src/main.rs new file mode 100644 index 0000000..a844748 --- /dev/null +++ b/showbits-thermal-printer/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + showbits_common::greet("world"); +}