From 20108136d20f513c2873f84b563e9dc024d4fc53 Mon Sep 17 00:00:00 2001 From: William Venner Date: Thu, 30 Dec 2021 18:22:15 +0000 Subject: [PATCH] Move example -> examples --- Cargo.toml | 3 ++- README.md | 4 ++-- {example => examples}/my-first-binary-module/Cargo.toml | 0 {example => examples}/my-first-binary-module/README.md | 0 .../my-first-binary-module/rust-toolchain.toml | 0 {example => examples}/my-first-binary-module/src/lib.rs | 0 {example => examples}/printing-to-console/Cargo.toml | 0 {example => examples}/printing-to-console/README.md | 0 {example => examples}/printing-to-console/rust-toolchain.toml | 0 {example => examples}/printing-to-console/src/lib.rs | 0 10 files changed, 4 insertions(+), 3 deletions(-) rename {example => examples}/my-first-binary-module/Cargo.toml (100%) rename {example => examples}/my-first-binary-module/README.md (100%) rename {example => examples}/my-first-binary-module/rust-toolchain.toml (100%) rename {example => examples}/my-first-binary-module/src/lib.rs (100%) rename {example => examples}/printing-to-console/Cargo.toml (100%) rename {example => examples}/printing-to-console/README.md (100%) rename {example => examples}/printing-to-console/rust-toolchain.toml (100%) rename {example => examples}/printing-to-console/src/lib.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index c665c2b..2511c42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,5 +4,6 @@ members = [ "gmod-macros" ] exclude = [ - "example/my-first-binary-module" + "examples/my-first-binary-module", + "examples/printing-to-console" ] \ No newline at end of file diff --git a/README.md b/README.md index 715f986..99c4b63 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ A swiss army knife for creating binary modules for Garry's Mod in Rust. -# Example +# Examples -[Click here](https://github.com/WilliamVenner/gmod-rs/tree/master/example/my-first-binary-module) to see an example. \ No newline at end of file +[Click here](https://github.com/WilliamVenner/gmod-rs/tree/master/examples/) to see examples. \ No newline at end of file diff --git a/example/my-first-binary-module/Cargo.toml b/examples/my-first-binary-module/Cargo.toml similarity index 100% rename from example/my-first-binary-module/Cargo.toml rename to examples/my-first-binary-module/Cargo.toml diff --git a/example/my-first-binary-module/README.md b/examples/my-first-binary-module/README.md similarity index 100% rename from example/my-first-binary-module/README.md rename to examples/my-first-binary-module/README.md diff --git a/example/my-first-binary-module/rust-toolchain.toml b/examples/my-first-binary-module/rust-toolchain.toml similarity index 100% rename from example/my-first-binary-module/rust-toolchain.toml rename to examples/my-first-binary-module/rust-toolchain.toml diff --git a/example/my-first-binary-module/src/lib.rs b/examples/my-first-binary-module/src/lib.rs similarity index 100% rename from example/my-first-binary-module/src/lib.rs rename to examples/my-first-binary-module/src/lib.rs diff --git a/example/printing-to-console/Cargo.toml b/examples/printing-to-console/Cargo.toml similarity index 100% rename from example/printing-to-console/Cargo.toml rename to examples/printing-to-console/Cargo.toml diff --git a/example/printing-to-console/README.md b/examples/printing-to-console/README.md similarity index 100% rename from example/printing-to-console/README.md rename to examples/printing-to-console/README.md diff --git a/example/printing-to-console/rust-toolchain.toml b/examples/printing-to-console/rust-toolchain.toml similarity index 100% rename from example/printing-to-console/rust-toolchain.toml rename to examples/printing-to-console/rust-toolchain.toml diff --git a/example/printing-to-console/src/lib.rs b/examples/printing-to-console/src/lib.rs similarity index 100% rename from example/printing-to-console/src/lib.rs rename to examples/printing-to-console/src/lib.rs