cross-compilation error: could not compile `h2` (lib)
chrysos349 opened this issue · comments
Hi, I'm trying to cross-compile your app for aarch64, but get the error below
error[E0107]: struct takes 3 generic arguments but 2 generic arguments were supplied
--> /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/h2-0.2.7/src/proto/streams/store.rs:15:10
|
15 | ids: IndexMap<StreamId, SlabIndex>,
| ^^^^^^^^ -------- --------- supplied 2 generic arguments
| |
| expected 3 generic arguments
|
note: struct defined here, with 3 generic parameters: `K`, `V`, `S`
--> /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.7.0/src/map.rs:76:12
|
76 | pub struct IndexMap<K, V, S> {
| ^^^^^^^^ - - -
help: add missing generic argument
|
15 | ids: IndexMap<StreamId, SlabIndex, S>,
| +++
For more information about this error, try `rustc --explain E0107`.
error: could not compile `h2` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
Any help?