I'm trying to package hashlink 0.6.0 for debian, and in the course of the standard debian build, I see the following two failures:
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'build', '--verbose', '--verbose', '-j4', '--target', 'x86_64-unknown-linux-gnu'],) {}
Compiling hashbrown v0.9.1
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=hashbrown CARGO_MANIFEST_DIR=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/debian/cargo_registry/hashbrown-0.9.1 CARGO_PKG_AUTHORS='Amanieu d'\''Antras <amanieu@gmail.com>' CARGO_PKG_DESCRIPTION='A Rust port of Google'\''s SwissTable hash map' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=Apache-2.0/MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=hashbrown CARGO_PKG_REPOSITORY='https://github.com/rust-lang/hashbrown' CARGO_PKG_VERSION=0.9.1 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=9 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/debug/deps:/usr/lib' rustc --crate-name hashbrown --edition=2018 /home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/debian/cargo_registry/hashbrown-0.9.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -Cembed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="inline-more"' -C metadata=dfc80923e95acd17 -C extra-filename=-dfc80923e95acd17 --out-dir /home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/debug/deps --cap-lints warn -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0=/usr/share/cargo/registry/hashlink-0.6.0`
Compiling hashlink v0.6.0 (/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0)
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=hashlink CARGO_MANIFEST_DIR=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0 CARGO_PKG_AUTHORS='kyren <kerriganw@gmail.com>' CARGO_PKG_DESCRIPTION='HashMap-like containers that hold their key-value pairs in a user controllable order' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=hashlink CARGO_PKG_REPOSITORY='https://github.com/kyren/hashlink' CARGO_PKG_VERSION=0.6.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=6 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/debug/deps:/usr/lib' rustc --crate-name hashlink --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -Cembed-bitcode=no -C debuginfo=2 -C metadata=eb6baffa3df7995a -C extra-filename=-eb6baffa3df7995a --out-dir /home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/debug/deps --extern hashbrown=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/deps/libhashbrown-dfc80923e95acd17.rmeta -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0=/usr/share/cargo/registry/hashlink-0.6.0`
error[E0599]: no variant or associated item named `default` found for enum `DefaultHashBuilder` in the current scope
--> src/linked_hash_map.rs:50:57
|
50 | hash_builder: hash_map::DefaultHashBuilder::default(),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error[E0599]: no variant or associated item named `default` found for enum `DefaultHashBuilder` in the current scope
--> src/linked_hash_map.rs:60:57
|
60 | hash_builder: hash_map::DefaultHashBuilder::default(),
| ^^^^^^^ variant or associated item not found in `DefaultHashBuilder`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0599`.
error: could not compile `hashlink`.
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=hashlink CARGO_MANIFEST_DIR=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0 CARGO_PKG_AUTHORS='kyren <kerriganw@gmail.com>' CARGO_PKG_DESCRIPTION='HashMap-like containers that hold their key-value pairs in a user controllable order' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=hashlink CARGO_PKG_REPOSITORY='https://github.com/kyren/hashlink' CARGO_PKG_VERSION=0.6.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=6 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/debug/deps:/usr/lib' rustc --crate-name hashlink --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -Cembed-bitcode=no -C debuginfo=2 -C metadata=eb6baffa3df7995a -C extra-filename=-eb6baffa3df7995a --out-dir /home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/debug/deps --extern hashbrown=/home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0/target/x86_64-unknown-linux-gnu/debug/deps/libhashbrown-dfc80923e95acd17.rmeta -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /home/dkg/src/sequoia/2021-03-26/rust-hashlink-0.6.0=/usr/share/cargo/registry/hashlink-0.6.0` (exit code: 1)
dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101
I'm not a rust expert, so if you think i'm doing something wrong here, i'm happy to get pointers to the right fix.
I'm trying to package hashlink 0.6.0 for debian, and in the course of the standard debian build, I see the following two failures:
I'm not a rust expert, so if you think i'm doing something wrong here, i'm happy to get pointers to the right fix.