Giter Site home page Giter Site logo

Comments (4)

Arnavion avatar Arnavion commented on August 28, 2024

One way to resolve this is to add a feature to your library that enables one of the k8s-openapi v1_* features and is used only when running such commands.

The point of that line in the docs is that you define the __check feature as you did and then run cargo check --features __check. Just cargo check will continue to fail.

I'll change it to not use passive voice so that it's clear that it's not like it's a cargo behavior to use that feature automatically.

from k8s-openapi.

flavio avatar flavio commented on August 28, 2024

I'll change it to not use passive voice so that it's clear that it's not like it's a cargo behavior to use that feature automatically.

Thanks! I was hoping that cargo check would run by default with this feature by default 😅

from k8s-openapi.

clux avatar clux commented on August 28, 2024

@flavio You're likely seeing this because of the resolver change in rust 2021.

What we do to make this more ergonomic for libraries (that are ultimately not responsible for picking kubernetes versions) without breaking cargo check / cargo publish, is to add a dev-dep entry to k8s-openapi for local use:

[dev-dependencies.k8s-openapi]
version = "0.16.0"
default-features = false
features = ["v1_25"]

from k8s-openapi.

flavio avatar flavio commented on August 28, 2024

@clux this is not taken into account by commands like cargo check. This works only when doing cargo test.

The documentation of the project is already clear about this limitation.

from k8s-openapi.

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.