From e457f3e1e56b0eb5f2d0ed0a9b99f44e9fb4e810 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann <m@nuth.ch> Date: Fri, 11 Apr 2025 19:47:06 +0200 Subject: [PATCH] Create a GUI library --- gui/Cargo.toml | 6 ++++++ gui/src/lib.rs | 3 +++ rust-exercises.code-workspace | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 gui/Cargo.toml create mode 100644 gui/src/lib.rs diff --git a/gui/Cargo.toml b/gui/Cargo.toml new file mode 100644 index 0000000..ac8282d --- /dev/null +++ b/gui/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "gui" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/gui/src/lib.rs b/gui/src/lib.rs new file mode 100644 index 0000000..3a5cb77 --- /dev/null +++ b/gui/src/lib.rs @@ -0,0 +1,3 @@ +pub trait Draw { + fn draw(&self); +} diff --git a/rust-exercises.code-workspace b/rust-exercises.code-workspace index 9e84ba9..8c1d517 100644 --- a/rust-exercises.code-workspace +++ b/rust-exercises.code-workspace @@ -1,5 +1,8 @@ { "folders": [ + { + "path": "./gui" + }, { "path": "./stream-composition" },