Giter Site home page Giter Site logo

Comments (10)

rapiz1 avatar rapiz1 commented on June 9, 2024 1

rustc 1.76.0-nightly (37b2813a7 2023-11-24) (built from a source tarball)

I can build using rustc 1.76.0 (07dca489a 2024-02-04) without issues. You may want to update to the latest stable or nightly.

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

from rathole.

rapiz1 avatar rapiz1 commented on June 9, 2024

it looks pretty like a dependency issue. could you please try the latest rust toolchain and compile after a cargo update? cc @sunmy2019

I honestly have no idea why this is happening given we have tested it on ubuntu

name: Run tests with rustls
        run: cargo test --verbose --no-default-features --features server,client,rustls,noise,websocket-rustls,hot-reload

there's a great chance it's a packaging thing.

from rathole.

yonas avatar yonas commented on June 9, 2024

could you please try the latest rust toolchain and compile after a cargo update?

@rapiz1 Thanks, I'm getting the same error after running cargo update.

from rathole.

rapiz1 avatar rapiz1 commented on June 9, 2024

Would you mind also sharing your rustc version? @yonas

from rathole.

sunmy2019 avatar sunmy2019 commented on June 9, 2024

Enabling rustls requiring disabling default features. Can you try this?

cargo build --release  --no-default-features --features websocket-rustls

from rathole.

sunmy2019 avatar sunmy2019 commented on June 9, 2024

See similar situations in jdx/mise#1630

from rathole.

yonas avatar yonas commented on June 9, 2024

Would you mind also sharing your rustc version?

rustc 1.76.0-nightly (37b2813a7 2023-11-24) (built from a source tarball)

Can you try cargo build --release --no-default-features --features websocket-rustls

I'm getting the same errors.

from rathole.

sunmy2019 avatar sunmy2019 commented on June 9, 2024

rustc 1.76.0-nightly (37b2813a7 2023-11-24) (built from a source tarball)

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.

from rathole.

yonas avatar yonas commented on June 9, 2024

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.

Use something other than nightly will be good.

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.

from rathole.

rapiz1 avatar rapiz1 commented on June 9, 2024

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.

from rathole.

Related Issues (20)

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.