Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Remove futures-nightly feature #373

Merged
merged 1 commit into from
Aug 31, 2018
Merged

Remove futures-nightly feature #373

merged 1 commit into from
Aug 31, 2018

Conversation

sdroege
Copy link
Member

@sdroege sdroege commented Aug 30, 2018

futures 0.2 is not maintained anymore and the nightly parts don't work
anymore with latest nightly toolchain


If I understand how to optionally depend (based on a feature flag) on futures 0.3, I'll re-add this in a different way.

Does someone know how that would look like in Cargo.toml?

futures 0.2 is not maintained anymore and the nightly parts don't work
anymore with latest nightly toolchain
@GuillaumeGomez
Copy link
Member

Instead of removing code, wouldn't it be better to comment it?

@EPashkin
Copy link
Member

Personally I prefer removing, it usually give better results with git revert.

@GuillaumeGomez
Copy link
Member

@sdroege Any opinion?

@sdroege
Copy link
Member Author

sdroege commented Aug 30, 2018

I removed it because for the future 0.3 version I'll simply go with a main_context_futures_nightly.rs or similar. There are too many differences to make it work in a reasonable way inside the same file.

@EPashkin
Copy link
Member

About loading different crates version by feature:
Checked on other crate that [target.'cfg(feature="futures-nightly")'.dependencies] not works
and [target.'cfg(not(feature="futures-nightly"))'.dependencies] always included same as [dependencies]
😭

@GuillaumeGomez
Copy link
Member

Ok, let's go with removal then.

@EPashkin
Copy link
Member

Then it time to merge gtk-rs/examples#185 and restart CI here

@GuillaumeGomez
Copy link
Member

Restarted travis.

@sdroege
Copy link
Member Author

sdroege commented Aug 31, 2018

See rust-lang/cargo#5954 for the missing cargo feature

Can we get this merged now, or ...? :)

@GuillaumeGomez
Copy link
Member

Sure, thanks!

@GuillaumeGomez GuillaumeGomez merged commit 8321455 into gtk-rs:master Aug 31, 2018
@EPashkin
Copy link
Member

@sdroege rust-lang/cargo#1197 active since 2015 😭
Also somewhere I see that it better not implemented since features can be set externally (by parents) and can produce conflicting set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants