Git Product home page Git Product logo

Comments (10)

briansmith avatar briansmith commented on July 2, 2024

Hmm...why would our CI jobs pass if this happens?

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 2, 2024

They are warnings. Does your CI treats warnings as errors (mk/cargo.sh test run from command line does not)?

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 2, 2024

Warnings confirmed in example https://github.com/briansmith/ring/actions/runs/7492345579/job/20400988301

from ring.

briansmith avatar briansmith commented on July 2, 2024

I do see the warnings but they do not cause the build to break.

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 2, 2024

Sorry, should have made it clear - it's -D warnings in our application build that's causing builds to fail. We don't really expect warnings from 3rd party crates (or our own code), and ring did not formerly issue any.

from ring.

briansmith avatar briansmith commented on July 2, 2024

Is there a way to get the #[allow(deprecated]) to work? If not, I will accept a PR that replaces the #[deprecated] with a comment and that removes the useless #[allow(deprecated]).

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 2, 2024

I think the code as it is is trying to apply #[allow(deprecated)] to the function after macro expansion, rather than to the macro invocation itself. I don't know of a way of applying an attribute to a macro invocation - I doubt this is possible. The only way I could get it to work is by having #![allow(deprecated)] at the file level in montgomery.rs (and removing the useless #[allow(deprecated] on the macro invocation). Would that work for you?

from ring.

briansmith avatar briansmith commented on July 2, 2024

I think we're better off just replacing the #[deprecated(...)] on the definition with a comment, and then removing the #[allow(deprecated)]. I still want to get other deprecation warnings, if any, in montgomery.rs.

from ring.

DavidHorton5339 avatar DavidHorton5339 commented on July 2, 2024

Yes, that would be better than using the deprecation as a TODO marker, then masking it.

from ring.

briansmith avatar briansmith commented on July 2, 2024

I'm going to close this. It is annoying that we have these warnings but we don't need to have an issue to track the annoyance.

from ring.

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.