Code Monkey home page Code Monkey logo

Comments (4)

colin-kiegel avatar colin-kiegel commented on September 16, 2024

suggestions are welcome. :-)

from rust-derive-builder.

killercup avatar killercup commented on September 16, 2024

At first, I would not check for this at all, but just mention in the Readme what version we are currently running tests with.

And when the first bug reports that are caused by a breaking change in custom_derive, I would make that part of the Readme bold. 😉

But seriously, this is basically impossible to solve without cargo supporting something like npm's peer-dependencies.

Am 09.08.2016 um 12:32 schrieb Colin Kiegel [email protected]:

We can not control which version of custom_derive is used by a client of this crate.

Just to be save, we should test with multiple versions of custom_derive. It would be sufficient if these tests only run on travis.

However I'am not sure, about the best way to achieve this.

• it seems like dev-dependencies can't be opted out of
• optional dependencies are fixed to a specific version
• cargo features may only specify optional dependencies
http://doc.crates.io/manifest.html

One hacky approach might be usage of sed 's/placeholder/version/g' on a Cargo.toml template before cargo test.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from rust-derive-builder.

colin-kiegel avatar colin-kiegel commented on September 16, 2024

I just realized, the latest version of custom_derive is still 0.1.5 so there haven't been any breaking changes, yet.

But in case this becomes relevant, I just solved it with a really simple bash script, which loops over some arrays and then does

cargo add $crate@$version --dev
cargo update
cargo test

I think we could just commit such a script to our repository and make travis run it. But since it is not relevant now, I saved it as a gist for future use - voilà ;-)
https://gist.github.com/colin-kiegel/ea4f13db5b14374c68ed345a2224f990

from rust-derive-builder.

colin-kiegel avatar colin-kiegel commented on September 16, 2024

PS: On second thought we could also use travis env-variables
https://docs.travis-ci.com/user/environment-variables/#Global-Variables

This way all combinations would result in a different run (definitely slower, but better visualisation in travis)

from rust-derive-builder.

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.