Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While this would be an interesting alternative in theory and the project is active, related curl activity seems low and my recent attempt failed hard when trying to (cross-)build it. This may have been entirely my own fault/ignorance, and I did see similar happen with other Rust projects, I don't see any reasonable way out. Short of having the stamina and free time to spend weeks or months to crack it, for now I delete any plans to use rustls with curl-for-win builds. Focusing instead on switching to either LibreSSL or BoringSSL.
- Loading branch information
32cf700
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're willing to use nightly rust, cross-compiling the rust project is also fairly easy (unless it depends on indexmap1.x). You can refer to my work. Existing compiler hardening such as CFG CET will also work.
32cf700
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your pointer, I made a note of it! But, It seems quite a steep hill to climb,
and I'm already on my last strings with open source projects for the moment. We will
see in the future. (I'd hope that rust one day settles enough that it's possible to use a
stable env installed via a standard package manager. Rolling nightlies puts a very
high expectation on downstream and also prevents creating reproducible output.)
32cf700
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gnullvm will soon promote to a tier 2 target, at which point it will be possible to install prebuilt std via rustup without nightly. However, if you wish to use the system package manager rust, you will have to wait for build-std to become a stable feature. There is no deadline for this, but once it is stable, cross-compile rust will be as easy as golang.
By the way, rustup rustc is optimized with PGO+ThinLTO+BOLT, that is not available in system package manager rustc.
32cf700
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking forwards for these to become standard features, it would help a lot.
The optimization can wait and will surely follow IMO.