Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken no_std build #1396

Closed
Nemo157 opened this issue Jan 3, 2019 · 1 comment
Closed

Broken no_std build #1396

Nemo157 opened this issue Jan 3, 2019 · 1 comment

Comments

@Nemo157
Copy link
Member

Nemo157 commented Jan 3, 2019

Related to changes from #1388 + #1390. Before the change in #1390 the tests on CI passed because they use cargo test --all --all-features, this would activate the futures-test/std feature while running the futures tests; but if you want to run just the futures tests locally with cargo test -p futures-preview they would fail because the futures-test/std feature was not activated. Removing default-features false from the futures-test dev-dependency in futures fixed this so that both ways of testing would work, but because of feature unification between dev and non-dev dependencies this results in the futures-core/std feature being force activated always.

I don't see any way to fix this with how features currently work in Cargo, but there's been no real movement on un-unifying the features of dependency types (rust-lang/cargo#4866).

taiki-e added a commit to taiki-e/futures-rs that referenced this issue Jan 10, 2019
This allows build fail until rust-lang#1396 is fixed.
taiki-e added a commit to taiki-e/futures-rs that referenced this issue Jan 10, 2019
This allows build fail until rust-lang#1396 is fixed.
taiki-e added a commit to taiki-e/futures-rs that referenced this issue Jan 11, 2019
This allows build fail until rust-lang#1396 is fixed.
cramertj pushed a commit that referenced this issue Jan 14, 2019
This allows build fail until #1396 is fixed.
@Nemo157
Copy link
Member Author

Nemo157 commented Feb 16, 2019

I have an idea for a hacky solution to this, I'll try and get a PR up soon.

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

No branches or pull requests

1 participant