From 2c6f5b32820eeff251968365ba2a794063c6eb44 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Tue, 2 Jan 2024 01:30:03 -0800 Subject: [PATCH] Move to workspace --- Cargo.toml | 17 +++++------------ checkerboard/Cargo.toml | 12 ++++++++++++ index.html => checkerboard/index.html | 0 index.js => checkerboard/index.js | 0 {src => checkerboard/src}/lib.rs | 0 5 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 checkerboard/Cargo.toml rename index.html => checkerboard/index.html (100%) rename index.js => checkerboard/index.js (100%) rename {src => checkerboard/src}/lib.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index f598f7a..7a76adc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,5 @@ -[package] -name = "gamarjoba" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[lib] -crate-type = ["cdylib"] - -[dependencies] -wasm-bindgen = "0.2.88" +[workspace] +resolver = "2" +members = [ + "checkerboard" +] diff --git a/checkerboard/Cargo.toml b/checkerboard/Cargo.toml new file mode 100644 index 0000000..f598f7a --- /dev/null +++ b/checkerboard/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "gamarjoba" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[lib] +crate-type = ["cdylib"] + +[dependencies] +wasm-bindgen = "0.2.88" diff --git a/index.html b/checkerboard/index.html similarity index 100% rename from index.html rename to checkerboard/index.html diff --git a/index.js b/checkerboard/index.js similarity index 100% rename from index.js rename to checkerboard/index.js diff --git a/src/lib.rs b/checkerboard/src/lib.rs similarity index 100% rename from src/lib.rs rename to checkerboard/src/lib.rs