Comments (4)
suggestions are welcome. :-)
from rust-derive-builder.
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.htmlOne 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.
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.
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)
- Update syn dependency? HOT 9
- Feature request: infallible build() HOT 3
- Provides builder functions that consume ownership HOT 5
- Owned pattern does not compile with custom default function. HOT 5
- Question: shorthand fields HOT 3
- Potential to allow for arguments in custom validator function HOT 4
- Allow way to prevent dependency on crate `alloc`. HOT 4
- Document `custom_constructor` and `create_empty` flags
- Non-chaining `&mut` pattern HOT 3
- This library is brilliant!
- Please advise: toBuilder functionality HOT 4
- Builder + Figment HOT 5
- Feature request: `impl fn builder() -> Builder` for the struct that is derived from HOT 1
- Consuming build but by mut setters? HOT 4
- Add conditional setters for options HOT 1
- Allow builder_struct_attr to set attributes before #[derive(...)]
- enh: support infallible builders HOT 1
- support suppressing default `Clone` derivation HOT 1
- Feature request: infallible `build` HOT 1
- public builder private struct HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-derive-builder.