同步操作将从 Gitee 极速下载/rathole 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This is for those who want to build rathole
themselves, possibly because the need of latest features or the minimal binary size.
To use default build settings, run:
cargo build --release
rathole
comes with lots of crate features that determine whether a certain feature will be compiled or not. Supported features can be checked out in [features]
of Cargo.toml.
For example, to build rathole
with the client
and noise
feature:
cargo build --release --no-default-features --features client,noise
minimal
profileThe release
build profile optimize for the program running time, not the binary size.
However, the minimal
profile enables lots of optimization for the binary size to produce a much smaller binary.
For example, to build rathole
with client
feature with the minimal
profile:
cargo build --profile minimal --no-default-features --features client
strip
and upx
The binary that step 1 produces can be even smaller, by using strip
and upx
to remove the symbols and compress the binary.
Like:
strip rathole
upx --best --lzma rathole
At the time of writting the build guide, the produced binary for x86_64-unknown-linux-glibc
has the size of 574 KiB, while frpc
has the size of ~10 MiB, which is much larger.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。