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

Compiling h2 #117

Closed
ghost opened this issue Nov 22, 2019 · 1 comment
Closed

Compiling h2 #117

ghost opened this issue Nov 22, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 22, 2019

I am encountering an isolated build error using cargo_raze and rules_rust when I am trying to compile h2 crate or any crate that depends on it such as hyper It is failing by requesting that IndexMap in the h2 crate should have 3 type argumetns.

external/raze__h2__0_1_26/src/proto/streams/store.rs:15:10
   |
15 |     ids: IndexMap<StreamId, SlabIndex>,
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 type arguments

Not sure if that is issue of cargo_raze, rules_rust or am I missing something very obvious.

h2 doesn't seem to have any build.rs file, nor does it have any weird features to enable or disable. The error also seems to indicate that type inference seems to be failing. Has anyone encountered something similar before?

Build using classical cargo works fine.

Could this be connected with #114 ?

@ghost
Copy link
Author

ghost commented Nov 22, 2019

Yep #114 was the solution. For anyone hitting the same problem.

[raze.crates.indexmap.'1.3.0']
additional_flags = [
    "--cfg=has_std"
]

@ghost ghost closed this as completed Nov 22, 2019
This issue was closed.
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

0 participants