rapiz1 / rathole

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
Apache License 2.0
8.82k stars 441 forks source link

请问能编译一个armv5能用的bin吗 #270

Open fyhong opened 12 months ago

fyhong commented 12 months ago

我的路由设备比较旧, 只支持armv5

kLiHz commented 11 months ago

Looks like Rust has support for ARMv5TE. Guess you can refer to some cross-compiling practices and see if things works.

kLiHz commented 11 months ago

You can try:

  1. Install C compilers and Rust stable toolchains via rustup;
  2. Say you'd like the target triple armv5te-unknown-linux-musleabi, then also save it in a variable for convenience export TARGET=armv5te-unknown-linux-musleabi;
  3. Add the target to the active Rust toolchain by rustup target add $TARGET;
  4. Currently the cross-build seems to fail with the tls feature on. If that's not necessary for your use case, run
    cargo build --release --target $TARGET \
     --no-default-features --features noise,client,server,hot-reload \
     --config target.$TARGET.linker=\"rust-lld\"

For reference:

xddcore commented 10 months ago

I just compiled a rathole binary package for Allwinner F1C200S. It targets Armv5tejl. The rothole version of the binary is v0.4.8.It can be downloaded via this link. Hope to help you.click to dowolad-armv5tejl

rapiz1 commented 9 months ago

That's good to have but I'm not sure which target triple most people need