Skip to content

refactor: extract native.rs and vm.rs from main.rs#10

Open
Frando wants to merge 3 commits intomainfrom
fix/cli
Open

refactor: extract native.rs and vm.rs from main.rs#10
Frando wants to merge 3 commits intomainfrom
fix/cli

Conversation

@Frando
Copy link
Copy Markdown
Member

@Frando Frando commented Mar 27, 2026

Move all Linux-only code (sim execution, inspect, run-in) to native.rs and VM dispatch to vm.rs. Run/Prepare/Test commands auto-detect: native on Linux, VM elsewhere. Shared RunArgs struct via clap flatten. VmCommand Test reuses TestArgs. No more scattered #[cfg(target_os)] in main.rs.

Frando and others added 3 commits March 27, 2026 15:00
Move all Linux-only code (sim execution, inspect, run-in) to native.rs
and VM dispatch to vm.rs. Run/Prepare/Test commands auto-detect: native
on Linux, VM elsewhere. Shared RunArgs struct via clap flatten. VmCommand
Test reuses TestArgs. No more scattered #[cfg(target_os)] in main.rs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace cargo binstall with a direct curl+tar from the rolling release.
Faster, no extra tooling, and works reliably in CI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add back #[ctor::ctor] init_userns_for_ctor() in native.rs so test
binaries spawned by nextest set up user namespaces before main().
Replace cargo binstall with direct curl+tar from rolling release.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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