Repository navigation
[v0.2] Support macOS on Intel and Apple Silicon - #34
Merged
Merged
Conversation
The platform seam keeps its shared POSIX behavior as trait defaults and gains a macOS implementation that differs only in how a child's descendants are discovered (libproc instead of /proc). CI runs the test suite on both Apple runners, and the release pipeline merges both slices into one universal2 tarball. Refs #29 Signed-off-by: Xingqiu Xu <hilbertanjou83@gmail.com>
Lingbou
force-pushed
the
feat/macos-support
branch
from
September 30, 2026 15:20
9063dba to
6c60bde
Compare
5 tasks
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.
Parent: #1
Closes #29
What changed
/proc/<pid>/task/<pid>/childrenvslibc::proc_listchildpids). The child-tree kill itself is shared, leaves-first, unchanged.src/platform.rsgainsMacPlatform;current()selects it bytarget_os. Everything else — config root ($HOME/.line),ssh/ssh-keygendiscovery,/etc/ssh/ssh_configpolicy, null device, file modes, child signal reset, and the interrupt guard — is the same implementation the Linux path already used, now shared rather than duplicated.macosmatrix overmacos-15(arm64) andmacos-15-intel(x86_64) running fmt, clippy, tests, and a release build.lipo, asserts both slices are present, smoke-tests--version/--help, and publishesline-v<version>-universal2-apple-darwin.tar.gzthrough the samepackaging/make-tarball.shthe Linux tarballs use.Why Homebrew is not in this PR
A formula needs a tap repository that a maintainer owns, and the AUR decision in ADR-0001 set the precedent: a package-manager channel lands when it can be smoke-tested automatically rather than hand-maintained. The tarball is the v0.2 macOS path, and the ADR says so explicitly instead of implying Homebrew support.
Verification
cargo check --target aarch64-apple-darwin --all-targets --lockedand the same forx86_64-apple-darwin, pluscargo clippy --target aarch64-apple-darwin --all-targets --all-features -- -D warnings.cargo test --all-targets --locked(including the seven containerized ProxyJump scenarios),cargo clippy --all-targets --all-features --locked -- -D warnings,cargo fmt --check.