From 5b160a1d3efbca35010b570430727987b329997e Mon Sep 17 00:00:00 2001 From: Jingyu Ma Date: Thu, 26 Mar 2026 22:35:56 -0700 Subject: [PATCH] fix: add version to injectorpp-macros dep and update publish workflow - Add version = '0.5.1' to injectorpp-macros dependency in Cargo.toml (crates.io requires path dependencies to also specify a version) - Update publish.yml to publish injectorpp-macros first, wait for crates.io index, then publish injectorpp Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/publish.yml | 10 +++++++++- Cargo.toml | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8786ca7..b95f001 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,15 @@ jobs: toolchain: stable override: true - - name: Publish to crates.io + - name: Publish injectorpp-macros to crates.io + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + run: cargo publish --locked --package injectorpp-macros + + - name: Wait for crates.io index update + run: sleep 30 + + - name: Publish injectorpp to crates.io env: CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} run: cargo publish --locked diff --git a/Cargo.toml b/Cargo.toml index 161fb4c..1f8f4f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ description = "Injectorpp is a powerful tool designed to facilitate the writing [dependencies] libc = "0.2" -injectorpp-macros = { path = "injectorpp-macros" } +injectorpp-macros = { path = "injectorpp-macros", version = "0.5.1" } [target.'cfg(target_os = "macos")'.dependencies] mach2 = "0.5"