Code Monkey home page Code Monkey logo

Comments (7)

BeiyanYunyi avatar BeiyanYunyi commented on June 23, 2024 1

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

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

from cloudflarespeedtest-rust.

aa51513 avatar aa51513 commented on June 23, 2024

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

from cloudflarespeedtest-rust.

BeiyanYunyi avatar BeiyanYunyi commented on June 23, 2024

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

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

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

from cloudflarespeedtest-rust.

aa51513 avatar aa51513 commented on June 23, 2024

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的库简直就是不可能的事情

from cloudflarespeedtest-rust.

delphinuz avatar delphinuz commented on June 23, 2024

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都好了,就主程序无法正常编译。

from cloudflarespeedtest-rust.

BeiyanYunyi avatar BeiyanYunyi commented on June 23, 2024

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

from cloudflarespeedtest-rust.

delphinuz avatar delphinuz commented on June 23, 2024

我是几小时前 使用

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

拉下来的,应是最新的?

我再试一次,谢谢。

更新:

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

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

from cloudflarespeedtest-rust.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.