Skip to content

Fix eldritch-wasm headless build#1931

Merged
KCarretto merged 3 commits intomainfrom
fix-eldritch-wasm-build-headless-18152213475528262389
Feb 27, 2026
Merged

Fix eldritch-wasm headless build#1931
KCarretto merged 3 commits intomainfrom
fix-eldritch-wasm-build-headless-18152213475528262389

Conversation

@KCarretto
Copy link
Collaborator

Fixes the build-headless.sh script for eldritch-wasm by making the eldritch-agent dependency optional in the eldritch crate. This prevents heavy system dependencies (like pb, tokio, tonic) from being pulled into the WASM build when using fake_bindings, resolving compilation errors related to mio on wasm32-unknown-unknown.


PR created automatically by Jules for task 18152213475528262389 started by @KCarretto

The `build-headless.sh` script for building the WASM REPL was failing because `eldritch-agent` (and its transitive dependency `pb`) was being included unconditionally in `eldritch/Cargo.toml`. `pb` pulls in `tokio` and `tonic` with features incompatible with `wasm32-unknown-unknown` (specifically requiring `mio` which fails to compile).

This commit modifies `implants/lib/eldritch/eldritch/Cargo.toml` to:
1. Make `eldritch-agent` an optional dependency.
2. Gate `eldritch-agent` behind the `stdlib` feature (via `dep:eldritch-agent`).

This ensures that when building for WASM using `fake_bindings` (which disables `stdlib`), `eldritch-agent` is excluded, breaking the dependency chain to the incompatible crates.

Verified by running `./build-headless.sh` which now succeeds and produces updated WASM artifacts.

Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@KCarretto KCarretto marked this pull request as ready for review February 27, 2026 01:39
@KCarretto KCarretto merged commit 0c8418a into main Feb 27, 2026
8 checks passed
@KCarretto KCarretto deleted the fix-eldritch-wasm-build-headless-18152213475528262389 branch February 27, 2026 01:40
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.

1 participant