GithubHelp home page GithubHelp logo

Comments (5)

obi1kenobi avatar obi1kenobi commented on June 26, 2024 1

A few folks have asked me directly, so for posterity: cargo-semver-checks would not have caught this today.

This is a breaking but not semver-major change, so it should be a "warn" or opt-in lint. cargo-semver-checks doesn't currently have such a capability, but it's something we're planning to add in the immediate future. After that, cargo-semver-checks will catch it and many more similar hazards (see "opt-in warnings" sections here).

from time.

obi1kenobi avatar obi1kenobi commented on June 26, 2024

Tangentially, if the maintainers of this repo might be interested in adopting cargo-semver-checks, I'd be happy to open a PR for it.

from time.

jhpratt avatar jhpratt commented on June 26, 2024

If I pub use the item rather than pub type, that would solve this? Ignoring the fact that use items cannot be deprecated.

from time.

obi1kenobi avatar obi1kenobi commented on June 26, 2024

Yes, it would: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ab4fb87dddb1e161fcfefd8e8d4e2190

from time.

jhpratt avatar jhpratt commented on June 26, 2024

This has been fixed and released. FormatItem is now re-exported via pub use, with pub type remaining in place for documentation purposes (namely showing the deprecation).

from time.

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.