Skip to content

build: Add macOS stub compilation support#212

Open
cgwalters wants to merge 1 commit intobootc-dev:mainfrom
cgwalters:macos-stub
Open

build: Add macOS stub compilation support#212
cgwalters wants to merge 1 commit intobootc-dev:mainfrom
cgwalters:macos-stub

Conversation

@cgwalters
Copy link
Collaborator

This is the start of work on #21

For now only the ephemeral verb exists and it just errors out, but the idea is we can fill that in.

Assisted-by: OpenCode (Claude claude-opus-4-5@20251101)

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces stub compilation support for macOS by adding conditional compilation attributes (#[cfg(target_os = "linux")]) to Linux-specific modules and dependencies. This is a good approach to enable cross-platform builds while deferring full feature implementation on other platforms. The changes are well-contained and correctly use Rust's conditional compilation features. I have one suggestion regarding the exit call in the main function to align with idiomatic Rust practices.

This is the start of work on bootc-dev#21

For now only the `ephemeral` verb exists and it just errors out,
but the idea is we can fill that in.

Assisted-by: OpenCode (Claude claude-opus-4-5@20251101)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters marked this pull request as ready for review February 26, 2026 13:26
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