fix: remove standalone bins from Cargo.toml to fix Tauri bundler failure#39
Merged
senamakel merged 5 commits intoMar 27, 2026
Conversation
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
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
openhuman-cliandopenhuman-core[[bin]]entries fromCargo.tomlto prevent Tauri bundler from trying to copy uncompiled binariesautobins = falseto prevent Cargo auto-discoveringsrc/bin/*.rsfiles--bin OpenHumanflag from all CI workflows (build, package-and-publish, release)release.yml, inject[[bin]]entries temporarily before standalone build stepProblem
Failed to copy binary from ".../release/openhuman-cli" ... does not exist[[bin]]entries fromCargo.tomland tries to copy them into the app bundle, regardless ofrequired-featuresgating--bin OpenHumancargo flag only compiled the main binary, but the bundler still expectedopenhuman-cliandopenhuman-coreto existSolution
[[bin]]entries for standalone bins fromsrc-tauri/Cargo.tomlso Tauri only sees theOpenHumanbinaryautobins = falseto[package]to prevent Cargo from auto-discovering binaries insrc/bin/--bin OpenHumancargo flag from all workflows (no longer needed with only one bin target)release.yml, the standalone CLI build step injects[[bin]]entries viaprintfbefore compiling with--features standalone-binsTesting
cargo metadata --no-depsconfirms onlyOpenHumanbinary target is visibleCargo.tomlparses correctly after changesImpact
src/bin/openhuman-core.rsandsrc/bin/openhuman-cli.rsare preservedBreaking Changes
Related