-
Notifications
You must be signed in to change notification settings - Fork 486
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
Compiling fails on FreeBSD when the websocket-rustls feature is enabled #335
Comments
it looks pretty like a dependency issue. could you please try the latest rust toolchain and compile after a I honestly have no idea why this is happening given we have tested it on ubuntu
there's a great chance it's a packaging thing. |
@rapiz1 Thanks, I'm getting the same error after running |
Would you mind also sharing your rustc version? @yonas |
Enabling
|
See similar situations in jdx/mise#1630 |
rustc 1.76.0-nightly (37b2813a7 2023-11-24) (built from a source tarball)
I'm getting the same errors. |
I can build using It's meant to break nightly as per dalek-cryptography/curve25519-dalek#619 (comment) I agree the their argument as well: no point of supporting out of date nightly |
One of our dependencies only supports the latest nightly. Others have filed report here: dalek-cryptography/curve25519-dalek#619 Use something other than nightly will be good. |
Upgrading to nightly on linux fixed the issue. FreeBSD ports doesn't yet have the latest nightly, so I've resorted to pinning curve25519-dalek to v4.1.1.
I agree, it should be optional. For example, I wonder if rathole's build.rs / Cargo.toml could detect if nightly is being used and then switch the version of curve25519-dalek from =v4.1.1 to >=v4.1.2. |
Glad to hear that it worked for you. That is possible but we will not introduce the maintenance burden for an outdated nightly build. Whenever FreeBSD gets to the latest nightly or stable of rustc, it will work seamlessly. The build should never fail on stable toolchain. Once you opt in for nightly, you're mostly responsible for resolving dependencies on your own because there's no compatibility promise for nightly. I will strongly suggest you use stable toolchain to compile rathole, if you don't have special needs. |
Describe the bug
Following #330 , compiling fails on FreeBSD when the
websocket-rustls
feature is enabled.To Reproduce
Steps to reproduce the behavior:
cargo build --release --features rustls,websocket-rustls
Logs
Environment:
rathole --version
output: 4ac53a5The text was updated successfully, but these errors were encountered: