Skip to content

fix: remove standalone bins from Cargo.toml to fix Tauri bundler failure#39

Merged
senamakel merged 5 commits into
tinyhumansai:developfrom
CodeGhost21:fix/ci-tauri-bundler-missing-bins
Mar 27, 2026
Merged

fix: remove standalone bins from Cargo.toml to fix Tauri bundler failure#39
senamakel merged 5 commits into
tinyhumansai:developfrom
CodeGhost21:fix/ci-tauri-bundler-missing-bins

Conversation

@CodeGhost21
Copy link
Copy Markdown
Contributor

@CodeGhost21 CodeGhost21 commented Mar 27, 2026

Summary

  • Remove openhuman-cli and openhuman-core [[bin]] entries from Cargo.toml to prevent Tauri bundler from trying to copy uncompiled binaries
  • Add autobins = false to prevent Cargo auto-discovering src/bin/*.rs files
  • Remove unnecessary --bin OpenHuman flag from all CI workflows (build, package-and-publish, release)
  • In release.yml, inject [[bin]] entries temporarily before standalone build step

Problem

  • All CI workflows (Build, Package and Publish, Release) fail during the Tauri bundling step with:
    Failed to copy binary from ".../release/openhuman-cli" ... does not exist
  • Tauri's bundler reads ALL [[bin]] entries from Cargo.toml and tries to copy them into the app bundle, regardless of required-features gating
  • The --bin OpenHuman cargo flag only compiled the main binary, but the bundler still expected openhuman-cli and openhuman-core to exist

Solution

  • Removed the [[bin]] entries for standalone bins from src-tauri/Cargo.toml so Tauri only sees the OpenHuman binary
  • Added autobins = false to [package] to prevent Cargo from auto-discovering binaries in src/bin/
  • Removed the --bin OpenHuman cargo flag from all workflows (no longer needed with only one bin target)
  • In release.yml, the standalone CLI build step injects [[bin]] entries via printf before compiling with --features standalone-bins

Testing

  • cargo metadata --no-deps confirms only OpenHuman binary target is visible
  • Verified Cargo.toml parses correctly after changes
  • CI workflows pass after merge

Impact

  • Fixes all three CI workflows: Build, Package and Publish, Release
  • No runtime impact — only CI/build pipeline changes
  • Source files src/bin/openhuman-core.rs and src/bin/openhuman-cli.rs are preserved

Breaking Changes

  • None

Related

  • Issue(s): CI build failures on all recent commits/tags
  • Follow-up PR(s)/TODOs: None

CodeGhost21 and others added 5 commits March 27, 2026 19:09
Tauri's bundler reads all [[bin]] entries from Cargo.toml and tries to
copy them into the app bundle, even when gated behind required-features.
This caused CI to fail with "openhuman-cli does not exist" because only
the OpenHuman binary was compiled.

- Remove openhuman-cli and openhuman-core [[bin]] entries from Cargo.toml
- Add autobins = false to prevent Cargo auto-discovering src/bin/*.rs
- Remove --bin OpenHuman flag from build/package-and-publish/release workflows
- In release.yml, inject [[bin]] entries temporarily for standalone build step

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…very

Tauri CLI and Cargo both auto-discover src/bin/*.rs as binary targets,
regardless of autobins = false. Moving the files to src/standalone/
ensures they are completely invisible to the Tauri bundler.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The build workflow is a CI check and doesn't have TAURI_SIGNING_PRIVATE_KEY.
Pass a config override to disable createUpdaterArtifacts for this workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The updater plugin has a pubkey configured which triggers signing even
with createUpdaterArtifacts disabled. Clear the pubkey via config override.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The CI build check only needs to verify compilation succeeds, not
produce signed bundles. Using --bundles none skips the bundler entirely,
avoiding the TAURI_SIGNING_PRIVATE_KEY requirement.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@senamakel senamakel merged commit 470302e into tinyhumansai:develop Mar 27, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants