rust-claim icon indicating copy to clipboard operation
rust-claim copied to clipboard

update `autocfg` dependecy version, for no conflicts

Open damooo opened this issue 3 years ago • 7 comments

Currently, autocfg crate dependecy set to ~1.0, and pegged to minor release.

It's current active minor version is 1.1, and many crates like dashmap, etc. use that version.

And this causes conflicts, and render claim unusable with many crates.

It should better pegged to major version, like ^1.

damooo avatar May 01 '22 17:05 damooo

I'm being affected by this quite a bit. This crate is almost unusable in any larger project due to the versioning conflict. Turns out autocfg is a really popular dependency lol.

For reference, this cargo issue calls out the tilde operator as violating version contract. I think removing it, as is done in #10, is definitely the correct solution.

Anders429 avatar May 31 '22 14:05 Anders429

FWIW you can work around it like in https://github.com/rust-lang/crates.io/pull/4857/files, but it's obviously not a long-term solution

Turbo87 avatar Jun 23 '22 07:06 Turbo87

agreed this is an issue and claim is problematic to use without this update. This is a really useful test crate. Hopefully it'll be added and published!

dmrolfs avatar Jul 19 '22 21:07 dmrolfs

I forked this library and created https://github.com/mattwilkinsonn/rust-claims so I can continue to use this library. It is available on crates.io - https://crates.io/crates/claims. Feel free to use this, at least until this library can be updated again.

mattwilkinsonn avatar Aug 31 '22 04:08 mattwilkinsonn

@mattwilkinsonn thanks a ton! Do you have any interest in also merging #8 into your fork?

Anders429 avatar Aug 31 '22 05:08 Anders429

Thanks a lot for the temporary fork. This has unblocked us for dependencies update!

yanns avatar Oct 12 '22 10:10 yanns

I forked this library and created https://github.com/mattwilkinsonn/rust-claims so I can continue to use this library. It is available on crates.io - https://crates.io/crates/claims. Feel free to use this, at least until this library can be updated again.

Thanks, I was starting to get a massive headache from this.

jclmnop avatar Jan 24 '23 13:01 jclmnop