From 5acaa2c4ff2d93073e379e8d709a470e5dcdc28c Mon Sep 17 00:00:00 2001 From: jenish-25 <113230851+jenish-25@users.noreply.github.com> Date: Wed, 8 Jul 2026 10:59:05 +0530 Subject: [PATCH 1/5] ci: fix push trigger and add manual dispatch --- .github/workflows/crates.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/crates.yml b/.github/workflows/crates.yml index 08ffc7e..5b65e74 100644 --- a/.github/workflows/crates.yml +++ b/.github/workflows/crates.yml @@ -1,6 +1,7 @@ on: push: - branch: ["master"] + branches: ["master", "fix/build-and-onboarding"] + workflow_dispatch: name: Publish to crates.io From 4d8623a09739d396575188aba5689c0bcdcac69b Mon Sep 17 00:00:00 2001 From: jenish-25 <113230851+jenish-25@users.noreply.github.com> Date: Wed, 8 Jul 2026 11:01:08 +0530 Subject: [PATCH 2/5] build: pin nightly-2022-11-02 toolchain required by feature gates --- rust-toolchain.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 rust-toolchain.toml diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..226063b --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "nightly-2022-11-02" From 77adb6aaca9aa05d58b49dd597dcb8045f7f06c3 Mon Sep 17 00:00:00 2001 From: jenish-25 <113230851+jenish-25@users.noreply.github.com> Date: Wed, 8 Jul 2026 11:01:08 +0530 Subject: [PATCH 3/5] ci: install system deps, pin toolchain, modernize actions --- .github/workflows/crates.yml | 72 ++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/.github/workflows/crates.yml b/.github/workflows/crates.yml index 5b65e74..db48d07 100644 --- a/.github/workflows/crates.yml +++ b/.github/workflows/crates.yml @@ -1,52 +1,54 @@ +name: Build the client + on: push: branches: ["master", "fix/build-and-onboarding"] + pull_request: workflow_dispatch: -name: Publish to crates.io - -env: - CRATES_DEPLOY: false - jobs: - build_and_test: + build: name: Build the client - runs-on: ubuntu-latest - environment: dev + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Install Nightly toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends \ + build-essential pkg-config libssl-dev libudev-dev \ + zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler - - run: rustup toolchain list - - uses: actions-rs/cargo@v1 + - name: Install pinned Rust toolchain + uses: dtolnay/rust-toolchain@master with: - command: build - args: --release --all-features + toolchain: nightly-2022-11-02 - check_and_publish: - name: Check semver and publish to crates.io - runs-on: ubuntu-latest - environment: dev + - name: Cargo build cache + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + + - name: Build release + run: cargo build --release --all-features + + # Publishing to crates.io is a maintainer action and is intentionally + # disabled here; kept for reference. + publish: + name: Publish to crates.io (disabled) + if: false + runs-on: ubuntu-22.04 steps: - - name: Checkout sources - uses: actions/checkout@v2 - - - name: Install Nightly toolchain - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal - toolchain: nightly - override: true - - - name: Publish to crates.io - if: "contains(${{ env.CRATES_DEPLOY }},'true')" + toolchain: nightly-2022-11-02 + - name: Publish run: cargo publish -p tinydancer --token ${CRATES_TOKEN} --no-verify env: - CRATES_DEPLOY: ${{ secrets.CRATES_DEPLOY }} CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} From 04bcac99078564ccb592730c2f4b21a19fd0ee2f Mon Sep 17 00:00:00 2001 From: jenish-25 <113230851+jenish-25@users.noreply.github.com> Date: Wed, 8 Jul 2026 11:27:13 +0530 Subject: [PATCH 4/5] docs: fix install repo name, document pinned toolchain and Linux deps --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8178030..eec673b 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,19 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Note: For Windows download rustup from this [link](https://forge.rust-lang.org/infra/other-installation-methods.html#other-ways-to-install-rustup) **Configure Toolchain** + +This repo pins the required Rust toolchain in `rust-toolchain.toml` +(`nightly-2022-11-02`). `rustup` installs and selects it automatically on the +first `cargo` invocation — no manual `rustup default` needed. + +The pin is required: `tinydancer` uses nightly-only feature gates +(`async_closure`, `mutex_unlock`) that newer nightlies have removed, so a current +toolchain will not compile it. + +**Linux system dependencies** (Ubuntu/Debian) ``` -rustup default nightly +sudo apt-get install -y build-essential pkg-config libssl-dev libudev-dev \ + zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler ``` **Build and Add to Path** @@ -29,7 +40,7 @@ cargo b -r && cp ./target/release/tinydancer ~/.local/bin/ ``` **Or Install Using Cargo** ``` -cargo install --git https://github.com/tinydancer-io/half-baked-client tinydancer +cargo install --git https://github.com/tinydancer-io/tinydancer tinydancer ``` **Confirm Installation** ``` From 5d301072b404539ff68e62f277d60db4857f7284 Mon Sep 17 00:00:00 2001 From: jenish-25 <113230851+jenish-25@users.noreply.github.com> Date: Wed, 8 Jul 2026 11:27:13 +0530 Subject: [PATCH 5/5] chore: bump tinydancer to 0.0.9 --- tinydancer/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinydancer/Cargo.toml b/tinydancer/Cargo.toml index 2a1b231..cacb3c0 100644 --- a/tinydancer/Cargo.toml +++ b/tinydancer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tinydancer" -version = "0.0.8" +version = "0.0.9" edition = "2021" default-run = "tinydancer" authors = ["Anoushk Kharangate ","Harsh Patel "]