[Pkg-rust-maintainers] Bug#1024304: rust-cargo-outdated - build-depends on obsolete version of rust-cargo.
Peter Green
plugwash at debian.org
Thu Nov 17 10:33:41 GMT 2022
Package: rust-cargo-outdated
Version: 0.10.2-3
Severity: serious
Rust-cargo-outdated depends on version 0.57 of rust-cargo, debian has 0.62.
There is a new upstream version, but it still only depends on version 0.60
of the cargo crate.
I tried patching the new upstream version to use version 0.62 of the cargo
crate but it failed with.
> error[E0599]: no method named `update` found for struct `Box<dyn Source>` in the current scope
> --> src/cargo_ops/temp_project.rs:386:24
> |
> 386 | source.update()?;
> | ^^^^^^ method not found in `Box<dyn Source>`
>
> error[E0599]: no method named `sort_by` found for enum `Poll` in the current scope
> --> src/cargo_ops/temp_project.rs:390:26
> |
> 390 | query_result.sort_by(|a, b| b.version().cmp(a.version()));
> | ^^^^^^^ method not found in `Poll<Vec<cargo::core::Summary>>`
>
> error[E0599]: no method named `iter` found for enum `Poll` in the current scope
> --> src/cargo_ops/temp_project.rs:397:42
> |
> 397 | let latest_result = query_result.iter().find(|summary| {
> | ^^^^ method not found in `Poll<Vec<cargo::core::Summary>>`
>
> error[E0608]: cannot index into a value of type `Poll<Vec<cargo::core::Summary>>`
> --> src/cargo_ops/temp_project.rs:430:21
> |
> 430 | query_result[0].version()
> | ^^^^^^^^^^^^^^^
>
> error[E0608]: cannot index into a value of type `Poll<Vec<cargo::core::Summary>>`
> --> src/cargo_ops/temp_project.rs:434:18
> |
> 434 | &query_result[0]
> | ^^^^^^^^^^^^^^^
>
> Some errors have detailed explanations: E0599, E0608.
> For more information about an error, try `rustc --explain E0599`.
> error: could not compile `cargo-outdated` due to 5 previous errors
I will commit the work so far to debcargo-conf so that others can build on it.
More information about the Pkg-rust-maintainers
mailing list