From 9313361cffe59ff0456ad2a86a7a96050c7fe483 Mon Sep 17 00:00:00 2001 From: Zack Date: Fri, 13 Jan 2023 16:53:45 -0800 Subject: [PATCH] Added examples. --- Cargo.toml | 7 ++++--- examples/playground/Cargo.toml | 20 ++++++++++++++++++++ examples/playground/src/main.rs | 7 +++++++ 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 examples/playground/Cargo.toml create mode 100644 examples/playground/src/main.rs diff --git a/Cargo.toml b/Cargo.toml index 3300876..4fc1c93 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [workspace] members = [ - "master" + "master", + "examples/playground" ] [workspace.package] @@ -15,7 +16,7 @@ thiserror = "1.0.*" uom = "0.33.*" # Logging log = "0.4.*" -env_logger = "0.9.*" +env_logger = "0.10.*" # Async futures-lite = "1.12.*" -async-io = "1.9.*" \ No newline at end of file +async-io = "1.12.*" \ No newline at end of file diff --git a/examples/playground/Cargo.toml b/examples/playground/Cargo.toml new file mode 100644 index 0000000..1ecc180 --- /dev/null +++ b/examples/playground/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "playground" +description = """The playground example is a special example meant for unstructured experimentation which can potentially be turned +into an actual example at some point or deleted. It should always be reset to unchanged hello world before the working +branch where the experimentation is happening is merged.""" +version.workspace = true +edition.workspace = true +repository.workspace = true +readme.workspace = true +license.workspace = true + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +thiserror.workspace = true +uom.workspace = true +log.workspace = true +env_logger.workspace = true +futures-lite.workspace = true +async-io.workspace = true \ No newline at end of file diff --git a/examples/playground/src/main.rs b/examples/playground/src/main.rs new file mode 100644 index 0000000..964a26c --- /dev/null +++ b/examples/playground/src/main.rs @@ -0,0 +1,7 @@ +//! The playground example is a special example meant for unstructured experimentation which can potentially be turned +//! into an actual example at some point or deleted. It should always be reset to unchanged hello world before the working +//! branch where the experimentation is happening is merged. + +fn main() { + println!("Hello, world!"); +}