Reinhard Tartler <siret...@debian.org> writes:
> Why does this error not reproduce outside of autopkgtest? -- either some
> dependency mismatch in debian, or somethign really subtle in
> autopkgtest. In either case, I'd like to keep my suggestion to disable
> the failing tests in in debian/tests/control and keep the one that runs
> the default features.

Okay, I now managed to reproduce it outside of autopkgtest. I chose the
wrong working directory for the invocation. Since this is a workspace
build, I forgot that 'cargo test' is invoked in the 'axum'
subdirectory. So this invocation now reproduces the autopkgtest failure
just fine:

  cd axum && cargo test --all-targets --no-default-features --features json


Here is a patch that adds the missing dependency:

diff --git a/axum/Cargo.toml b/axum/Cargo.toml
index e8cba15..3fef728 100644
--- a/axum/Cargo.toml
+++ b/axum/Cargo.toml
@@ -13,10 +14,10 @@
 
 [features]
 default = ["form", "http1", "json", "matched-path", "original-uri", "query", 
"tokio", "tower-log"]
 form = ["dep:serde_urlencoded"]
 http1 = ["hyper/http1"]
 http2 = ["hyper/http2"]
-json = ["dep:serde_json", "dep:serde_path_to_error"]
+json = ["dep:serde_json", "dep:serde_path_to_error", "original-uri", "tokio"]
 macros = ["dep:axum-macros"]
 matched-path = []
 multipart = ["dep:multer"]


I guess it's worth discussing this issue upstream at 
https://github.com/tokio-rs/axum/issues

Best,
-rt

Reply via email to