Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency xml-rs ^0.3.6 is yanked, breaking rosrust build #210

Open
shioko-chan opened this issue Dec 23, 2024 · 1 comment
Open

Dependency xml-rs ^0.3.6 is yanked, breaking rosrust build #210

shioko-chan opened this issue Dec 23, 2024 · 1 comment

Comments

@shioko-chan
Copy link

Problem

The dependency xml-rs = "^0.3.6" required by serde-xml-rs v0.2.1 has been yanked from crates.io, which breaks the build process when using rosrust v0.9.11. This makes it impossible to build projects that depend on rosrust.

Steps to Reproduce

  1. Create a new Rust project with the following Cargo.toml:
    [dependencies]
    rosrust = "0.9"
    rosrust_msg = "0.1.7"
  2. Run cargo build or cargo run.

Error Message

error: failed to select a version for the requirement xml-rs = "^0.3.6"
candidate versions found which didn't match: 0.8.24, 0.8.23, 0.8.22, ...
location searched: crates.io index
required by package serde-xml-rs v0.2.1
... which satisfies dependency serde-xml-rs = "^0.2.1" of package xml-rpc v0.0.12
... which satisfies dependency xml-rpc = "^0.0.12" of package rosrust v0.9.11
... which satisfies dependency rosrust = "^0.9.11" of package rosrust_msg v0.1.7
... which satisfies dependency rosrust_msg = "^0.1.7" of package abysmal v0.1.0 (/root/abysmal)
if you are looking for the prerelease package it needs to be specified explicitly
xml-rs = { version = "0.8.15-cvss-cries-wolf" }

Would it be possible to release an updated version of rosrust with compatible dependencies?

@MJohnson459
Copy link

The proper fix will need to filter through dependencies and updates but a workaround is to use a patch like this in your Cargo.toml file:

[patch.crates-io]
# Fixes https://github.com/adnanademovic/rosrust/issues/210
xml-rpc = { git = "https://github.com/locusrobotics/xml-rpc-rs", branch = "minimum-update" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants