Skip to content

Restore Windows builds: cfg-gate the Unix-only daemon code #151

Open

Description

@conorluddy

Context

The Windows release target (x86_64-pc-windows-msvc) and the PowerShell installer were removed from dist-workspace.toml in #148 so v0.6.1 could ship. The Windows job had failed every tagged release since the daemon landed in V0.5, and one failed target blocked the whole GitHub Release. v0.4.2 was the last release with a Windows binary.

Why it fails

From the v0.6.0 tag build (run 43167307968):

error[E0432]: unresolved imports `tokio::net::UnixListener`, `tokio::net::UnixStream`
error[E0432]: unresolved import `tokio::signal::unix`
error: could not compile `vestige-daemon`

Unix-only code with no cfg guards:

  • crates/vestige-daemon/src/ipc/server.rs — UnixListener / UnixStream
  • crates/vestige-daemon/src/lifecycle.rs — tokio::signal::unix
  • crates/vestige-cli/src/commands/daemon/{ipc_client,kick}.rs, commands/init.rs — UnixStream
  • crates/vestige-cli/src/commands/daemon/restart.rs — libc::getuid

Proposed

The daemon is already macOS-only in practice (LaunchAgent; daemon install exits with an error elsewhere), so the smallest change is to compile the daemon out on Windows rather than port it:

  • Gate vestige-daemon and the vestige daemon / vestige ui commands behind #[cfg(unix)]; on Windows the subcommands return a clear "not supported on this platform" error.
  • Gate the best-effort daemon registration ping in init.
  • Make libc a cfg(unix) dependency.
  • Re-add the target and powershell installer in dist-workspace.toml, run dist generate.

Definition of Done

  • cargo check --target x86_64-pc-windows-msvc passes for the workspace.
  • Core CLI + MCP work on Windows; daemon commands fail with an actionable message.
  • Windows target restored in dist-workspace.toml and validated with pr-run-mode = "upload" on the PR before merge (as in fix(release): drop Windows target, fix Apple Silicon runner, bump to 0.6.1 #148).
  • A Windows cargo check job in CI so this cannot regress silently.

Activity

  1. added
    enhancement
    P4
    size:M
    type:feature
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4enhancementsize:Mtype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions