Giter Site home page Giter Site logo

Power9 support about ureq HOT 2 OPEN

snyrkill avatar snyrkill commented on May 29, 2024
Power9 support

from ureq.

Comments (2)

snyrkill avatar snyrkill commented on May 29, 2024 2

Thanks Martin.
I checked rustls and it seems they have added ring.0.17.2 to Cargo.lock. 0.16.2 is still present though.
I know very little about Rust, I'm just a lowly DBA trying to install timescaledb-toolkit on Power9 and that endeavor has taken me here.
Hopefully this will resolve itself in the future but as ring.0.16.2 is over 4 years old now I'm not too optimistic.
Anyway, thank you for explaining this to me.
Cheers,
-S

from ureq.

algesten avatar algesten commented on May 29, 2024
$ cargo tree -i ring
ring v0.16.20
├── rustls v0.21.7
│   └── ureq v2.8.0 (/Users/martin/dev/ureq)
│   [dev-dependencies]
│   └── ureq v2.8.0 (/Users/martin/dev/ureq)
├── rustls-webpki v0.101.6
│   ├── rustls v0.21.7 (*)
│   └── ureq v2.8.0 (/Users/martin/dev/ureq)
└── sct v0.7.0
    └── rustls v0.21.7 (*)

Ring is a transitive dependency for ureq that comes from "rustls". What's sad is that rustls is built despite you using ureq/native-tls. This is because Rust's feature flags are additive, so if dependency A says "ureq with rustls" and B says "ureq with native-tls", we get an indeterminate TLS backend. We have instead opted for compiling both and making deciding which to use runtime. This decision is biting us here, because you simply can't get it to NOT compile rustls on Power9 despite it not being used.

I'm sorry to say there isn't a quick fix we can do here. We're already using the latest rustls release, and the Power9 build must be fixed in the rustls project. Changing the feature flag behavior would be a breaking change and require a major release.

I promise I'll monitor the rustls project to keep us tightly up-to-date, but the feature flag behavior is something we need to take with us into consideration for making a new major version in the future (it's the first time I encountered this).

My only suggestion is to stay on the previous version of ureq, for now.

from ureq.

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.