Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Cross.toml file and a note on using it #379

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

awilkins
Copy link

This provides a statically linked build that will work on musl-based
Linuxes such as those commonly used on NAS boxes.

This provides a statically linked build that will work on musl-based
Linuxes such as those commonly used on NAS boxes.
@awilkins awilkins mentioned this pull request Mar 15, 2023
@andrewchambers
Copy link
Owner

So to clarify - this does the build in docker?

@awilkins
Copy link
Author

Yes, cross-rs does the build in Docker and leaves the outputs in the expected place in the host filesystem - I've not attempted to wire it into the existing Github Actions build stuff that someone else contributed.

The cross-rs guys had some more advice like using a lighter build setup (apparently the full Rust / Alpine image is heavier than necessary), but it Works For Me™ as-is ; I got a statically linked bupstash executable that happily runs on my x86 based NAS box that I can just scp into place.

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.

2 participants