From f9b6e96b5ea1efa2d412b574435c0b0f006d8045 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 8 May 2023 20:15:35 +0200 Subject: [PATCH] Move everything to a workspace --- .github/dependabot.yml | 2 +- .github/workflows/rust.yml | 6 +++--- rust/Cargo.toml | 2 ++ {relay => rust/relay}/.gitignore | 0 {relay => rust/relay}/Cargo.lock | 0 {relay => rust/relay}/Cargo.toml | 0 {relay => rust/relay}/rust-toolchain.toml | 0 {relay => rust/relay}/src/main.rs | 0 8 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 rust/Cargo.toml rename {relay => rust/relay}/.gitignore (100%) rename {relay => rust/relay}/Cargo.lock (100%) rename {relay => rust/relay}/Cargo.toml (100%) rename {relay => rust/relay}/rust-toolchain.toml (100%) rename {relay => rust/relay}/src/main.rs (100%) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e1fbe5992..342ee748d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -22,6 +22,6 @@ updates: schedule: interval: "weekly" - package-ecosystem: "cargo" - directory: "relay/" + directory: "rust/" schedule: interval: "weekly" diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4d336012b..9fedba72b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,12 +2,12 @@ name: Rust CI on: pull_request: paths: - - 'relay/**' + - 'rust/**' push: branches: - master paths: - - 'relay/**' + - 'rust/**' # Cancel old workflow runs if new code is pushed concurrency: @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: ./relay + working-directory: ./rust steps: - uses: actions/checkout@v2 - run: cargo fmt -- --check diff --git a/rust/Cargo.toml b/rust/Cargo.toml new file mode 100644 index 000000000..f3c276b9a --- /dev/null +++ b/rust/Cargo.toml @@ -0,0 +1,2 @@ +[workspace] +members = ["relay"] diff --git a/relay/.gitignore b/rust/relay/.gitignore similarity index 100% rename from relay/.gitignore rename to rust/relay/.gitignore diff --git a/relay/Cargo.lock b/rust/relay/Cargo.lock similarity index 100% rename from relay/Cargo.lock rename to rust/relay/Cargo.lock diff --git a/relay/Cargo.toml b/rust/relay/Cargo.toml similarity index 100% rename from relay/Cargo.toml rename to rust/relay/Cargo.toml diff --git a/relay/rust-toolchain.toml b/rust/relay/rust-toolchain.toml similarity index 100% rename from relay/rust-toolchain.toml rename to rust/relay/rust-toolchain.toml diff --git a/relay/src/main.rs b/rust/relay/src/main.rs similarity index 100% rename from relay/src/main.rs rename to rust/relay/src/main.rs