Skip to content

rclrs 0.4.1 doesn't build for Rust 1.75 #458

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

Open
maspe36 opened this issue Feb 8, 2025 · 12 comments
Open

rclrs 0.4.1 doesn't build for Rust 1.75 #458

maspe36 opened this issue Feb 8, 2025 · 12 comments

Comments

@maspe36
Copy link
Collaborator

maspe36 commented Feb 8, 2025

I am playing around in a workspace that doesn't clone ros2_rust but instead pulls from crates.io. I am trying to target Rust 1.75, our target version, and I am unable to build.

I get the same issue as described in #449. In short, our the fix for this issue, #452 is not in rclrs 0.4.1.

@roboticswithjulia
Copy link

Hello @maspe36 which version of rustup are you using? Could you try to do this rustup --version and send back the output? Thank you!

@maspe36
Copy link
Collaborator Author

maspe36 commented Mar 19, 2025

Sure thing Julia, here you go

sam@orange:~$ rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.75.0 (82e1608df 2023-12-21)`

@roboticswithjulia
Copy link

Hello @maspe36 I had same issue the other way and how I solved was uninstalling rust and install the newest version:

rustup self uninstall
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.81.0 -y (maybe worth a try to install the last one 1.85.1

Let me know if it solves the issue.

@maspe36
Copy link
Collaborator Author

maspe36 commented Mar 19, 2025

Well I think the point of this issue is that we claim that Rust 1.75 is our minimum supported version, but our latest released version of rclrs to crates.io doesn't build with Rust 1.75

IMO the fix for this is to release a new version of rclrs to crates.io

@roboticswithjulia
Copy link

Yes, you are right! This is a better way to fix the issue rather than update rust version. Let's leave this question to the maintainers of the repository then.

@esteve
Copy link
Collaborator

esteve commented Mar 20, 2025

@roboticswithjulia

Yes, you are right! This is a better way to fix the issue rather than update rust version. Let's leave this question to the maintainers of the repository then.

FYI, @maspe36 is one of the maintainers of rclrs

@roboticswithjulia
Copy link

Thank you @esteve for the clarification! Sorry, my bad! @maspe36 Apologies!! Then I was talking with the right person!!!

@roboticswithjulia
Copy link

I was thinking to update the ./Dockerfile to use the last rust version, but I am also bit unsure if this also would be aligned in how this MR should be fixed.

@esteve
Copy link
Collaborator

esteve commented Mar 20, 2025

@roboticswithjulia this ticket is because we officially support the 1.75 version of the Rust toolchain. When we hopefully release the first version of ros2-rust as part of a ROS distro, the version of Rust that Ubuntu ships with is 1.75, so that's why we don't want to update the version of Rust in Dockerfile either.

@roboticswithjulia
Copy link

I understand now, thank you for the clarification @esteve !!

@roboticswithjulia
Copy link

roboticswithjulia commented Mar 25, 2025

I do not know if this might also be related with this issue, but, when I am trying to build just the minimal_pub_sub examples, it neither cannot find the std_msgs .

julia@jmr:~/Desktop/ros2_rust/examples/minimal_pub_sub$ cargo build
    Updating crates.io index
error: failed to select a version for the requirement `std_msgs = "*"`
  version 4.2.3 is yanked
location searched: crates.io index
required by package `examples_rclrs_minimal_pub_sub v0.4.1 (/home/julia/Desktop/ros2_rust/examples/minimal_pub_sub)`

@roboticswithjulia
Copy link

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

3 participants