[Pkg-rust-maintainers] Bug#1117771: rust-wiremock: FTBFS: error[E0432]: unresolved import `tokio::net::TcpListener`

Santiago Vila sanvila at debian.org
Fri Oct 10 17:27:59 BST 2025


Package: src:rust-wiremock
Version: 0.6.4-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202510/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rust-wiremock, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
warning: `futures` (lib) generated 1 warning
   Compiling url v2.5.4
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=url CARG [too-long-redacted] stry=/usr/share/cargo/registry`
warning: unexpected `cfg` condition value: `debugger_visualizer`
   --> /usr/share/cargo/registry/url-2.5.4/src/lib.rs:148:5
    |
148 |     feature = "debugger_visualizer",
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: expected values for `feature` are: `default`, `expose_internals`, `serde`, and `std`
    = help: consider adding `debugger_visualizer` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

   Compiling regex v1.11.2
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=regex CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/regex-1.11.2 CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/debian/cargo_registry/regex-1.11.2/Cargo.toml CARGO_PKG_AUTHORS='The Rust Project Developers:Andrew Gallant <jamslam at gmail.com>' CARGO_PKG_DESCRIPTION='An implementation of regular expressions for Rust. This implementation uses
finite automata and guarantees linear time matching on all inputs.
' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/regex' CA [too-long-redacted] stry=/usr/share/cargo/registry`
warning: `url` (lib) generated 1 warning
   Compiling assert-json-diff v2.0.2
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=assert_j [too-long-redacted] stry=/usr/share/cargo/registry`
   Compiling hyper-util v0.1.17
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=hyper_ut [too-long-redacted] stry=/usr/share/cargo/registry`
   Compiling http-body-util v0.1.2
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=http_body_util CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/http-body-util-0.1.2 CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/debian/cargo_registry/http-body-util-0.1.2/Cargo.toml CARGO_PKG_AUTHORS='Carl Lerche <me at carllerche.com>:Lucio Franco <luciofranco14 at gmail.com>:Sean McArthur <sean at seanmonstar.com>' CARGO_PKG_DESCRIPTION='Combinators and adapters for HTTP request or response bodies.
' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICE [too-long-redacted] stry=/usr/share/cargo/registry`
warning: function `poll_fn` is never used
 --> /usr/share/cargo/registry/hyper-util-0.1.17/src/common/future.rs:8:15
  |
8 | pub(crate) fn poll_fn<T, F>(f: F) -> PollFn<F>
  |               ^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: `hyper-util` (lib) generated 1 warning
   Compiling base64 v0.22.1
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=base64 C [too-long-redacted] stry=/usr/share/cargo/registry`
warning: unexpected `cfg` condition value: `cargo-clippy`
   --> /usr/share/cargo/registry/base64-0.22.1/src/lib.rs:223:13
    |
223 | #![cfg_attr(feature = "cargo-clippy", allow(clippy::cast_lossless))]
    |             ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: expected values for `feature` are: `alloc`, `default`, and `std`
    = help: consider adding `cargo-clippy` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

   Compiling wiremock v0.6.4 (/<<PKGBUILDDIR>>)
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=wiremock [too-long-redacted] stry=/usr/share/cargo/registry`
warning: `base64` (lib) generated 1 warning
error[E0432]: unresolved import `tokio::net::TcpListener`
  --> src/mock_server/hyper.rs:5:5
   |
5  | use tokio::net::TcpListener;
   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net`
   |
note: found an item that was configured out
  --> /usr/share/cargo/registry/tokio-1.47.1/src/net/mod.rs:43:28
   |
43 |     pub use tcp::listener::TcpListener;
   |                            ^^^^^^^^^^^
note: the item is gated behind the `net` feature
  --> /usr/share/cargo/registry/tokio-1.47.1/src/net/mod.rs:38:1
   |
38 | / cfg_net! {
39 | |     mod lookup_host;
40 | |     pub use lookup_host::lookup_host;
...  |
52 | | }
   | |_^
   = note: this error originates in the macro `cfg_net` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this struct instead
   |
5  - use tokio::net::TcpListener;
5  + use std::net::TcpListener;
   |

For more information about this error, try `rustc --explain E0432`.
error: could not compile `wiremock` (lib) due to 1 previous error

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] argo/registry` (exit status: 1)
dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-rust-maintainers mailing list