Skip to content

Conversation

@kornelski
Copy link
Contributor

I'm trying to make my crates work with cargo -Z minimal-versions to ensure that versions specified in my Cargo.toml are actual versions that work with my crate.

The problem is, it's not true for Rayon's dependencies: rayon 1.0.3 uses rayon-core 1.4.0, which uses rand 0.3.12, which uses advapi32-sys 0.1.2, which uses winapi 0.0.1, which isn't compatible with Rust 1.0.

The problem has been fixed in rayon-core 1.4.1, so that should be the minimal version used by rayon.

rayon-core 1.4.0 doesn't build with `cargo -Z minimal-versions`
@cuviper
Copy link
Member

cuviper commented Mar 3, 2019

bors r+

I'm approving this, because it's harmless, but I do feel some objection to this in principle. The semantic requirement is correct at 1.4, and it's not our fault (nor yours) that deeper indirect dependencies got their minimum wrong. IMO it's problematic that -Z minimal-versions makes you worry about dependencies outside your control -- it might be better if it only pinned the minimum of your workspace's dependencies.

Practically speaking, we're going to need a synchronized version bump of rayon and rayon-core before we publish anyway, because there are new re-exports from #615.

bors bot added a commit that referenced this pull request Mar 3, 2019
641: Require rayon-core ^1.4.1 r=cuviper a=kornelski

I'm trying to make my crates work with `cargo -Z minimal-versions` to ensure that versions specified in my Cargo.toml are actual versions that work with my crate.

The problem is, it's not true for Rayon's dependencies: rayon 1.0.3 uses rayon-core 1.4.0, which uses rand 0.3.12, which uses advapi32-sys 0.1.2, which uses winapi 0.0.1, which isn't compatible with Rust 1.0.

The problem has been fixed in rayon-core 1.4.1, so that should be the minimal version used by rayon.


Co-authored-by: Kornel <[email protected]>
@bors
Copy link
Contributor

bors bot commented Mar 3, 2019

@bors bors bot merged commit 5256543 into rayon-rs:master Mar 3, 2019
@kornelski kornelski deleted the patch-1 branch March 4, 2019 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants