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

可加入linux-arm64支持吗? #10

Open
delphinuz opened this issue Oct 25, 2022 · 7 comments
Open

可加入linux-arm64支持吗? #10

delphinuz opened this issue Oct 25, 2022 · 7 comments

Comments

@delphinuz
Copy link

如抬头,谢谢。

@aa51513
Copy link

aa51513 commented Nov 3, 2022

Rust itself is a cross-platform language, you can compile it yourself
Rust本身是跨平台语言,你可以自行编译

@BeiyanYunyi
Copy link
Owner

Rust本身是跨平台语言,你可以自行编译

虽然这么说,但相关的库并非如此。例如这个项目使用的openssl,我在交叉编译时失败了。我试图用rustls代替它,但它的一个依赖(ring)又构建失败了。

我之后可能需要考虑在虚拟机里构建。但最近比较忙,没时间搞了。

@aa51513
Copy link

aa51513 commented Nov 7, 2022

Rust本身是跨平台语言,你可以自行编译

虽然这么说,但相关的库并非如此。例如这个项目使用的openssl,我在交叉编译时失败了。我试图用rustls代替它,但它的一个依赖(ring)又构建失败了。

我之后可能需要考虑在虚拟机里构建。但最近比较忙,没时间搞了。

As a Rust novice, I'm trying to figure this out, but I'm failing.
作为一个Rust新手,我试图去解决这个问题,但是我失败了。

I am very confused and puzzled why there is no sane https client in the Rust repository
我感到非常困惑和不解,为什么Rust仓库里面,一个健全的https客户端都没有

It is impossible to find a https library that supports tustls and supports specifying Header or specifying Host at the same time
想找一个支持tustls的https库,同时支持指定Header或者指定Host的库简直就是不可能的事情

@delphinuz
Copy link
Author

Compiling async-recursion v1.0.4 Compiling relative-path v1.8.0 Compiling cfst v2.2.2 (/home/ubuntu/cloudflare-speed-test-rust) error: The default runtime flavor ismulti_thread, but the rt-multi-threadfeature is disabled. --> src/main.rs:8:1 | 8 | #[tokio::main] | ^^^^^^^^^^^^^^ | = note: this error originates in the attribute macrotokio::main` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile cfst due to previous error
`

今天在arm64(ubuntu)下编译,出现这个错误。

估计其它library都好了,就主程序无法正常编译。

@BeiyanYunyi
Copy link
Owner

@delphinuz 试试现在的 main 分支,开了那个 rt-multi-thread 的 feature

@delphinuz
Copy link
Author

delphinuz commented Mar 22, 2023

我是几小时前 使用

git clone https://github.com/lixiang810/cloudflare-speed-test-rust

拉下来的,应是最新的?

我再试一次,谢谢。

更新:

可以了,只是不知为何档案大小18mb,与网上2~3mb差这么多?

在甲骨文arm上编译可以运行,复制到路由上(armv8)却无法运行。

@BeiyanYunyi
Copy link
Owner

只是不知为何档案大小18mb,与网上2~3mb差这么多?

Release 里面的版本使用了 UPX 进行压缩,自行编译的版本需要手动进行这个操作。

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

No branches or pull requests

3 participants