-
Notifications
You must be signed in to change notification settings - Fork 74
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
riscv64 build possible? #655
Comments
You can try it out and get some ideas from here https://github.com/Watfaq/clash-rs/blob/master/.github/workflows/ci.yml Usually it doesn't require code change however might need extra build environment setup |
I experimented with it on my fork, it failed because of the
It looks like the dependency needs to be updated to at least version 0.17 to work on every target based on this issue. |
you can try to disable "onion" feature https://github.com/Watfaq/clash-rs/blob/master/.github/workflows/ci.yml#L126 0.16 is only required for tor clients |
It works! Here is the action log https://github.com/AutisticShark/clash-rs/actions/runs/12063872112/job/33639758426, maybe consider adding this to the release CI so other users with RISC-V hardware can also help test clash-rs? |
You can put a PR if you want since you already have it |
Has anyone successfully compiled clash-rs on the riscv64 arch yet? I am not familiar with Rust lang, could it be as simple as adding a compile option to the GitHub action, or require a code change?
I knew there are a lot of Golang solutions out there that can be easily cross-compiled for riscv64, but they are 1. massive binary size and 2. quite slow on current riscv64 hardware since nothing is accelerated and everything needs to be done in software.
Thanks.
The text was updated successfully, but these errors were encountered: