Giter Site home page Giter Site logo

Comments (4)

ruffsl avatar ruffsl commented on May 26, 2024

@kjeremy @jhdcs @gbiggs , I recall you had started discussing this topic on the Rust WG proposal post along this thread:
https://discourse.ros.org/t/proposal-rust-working-group-for-ros/16993/30

from ros2_rust.

kjeremy avatar kjeremy commented on May 26, 2024

@ruffsl

As mentioned in that thread the issue is that the included examples copy the Cargo.toml and inject entries for the messages during build. If you open the build space folder in vscode then rust-analyzer will give you types. The easiest solution from the rls/rust-analyzer POV would be to include those in the Cargo.toml or maybe build.rs from the beginning.

from ros2_rust.

jhdcs avatar jhdcs commented on May 26, 2024

The easiest solution from the rls/rust-analyzer POV would be to include those in the Cargo.toml or maybe build.rs from the beginning.

I think that this may be the best solution. I can forsee people using rclrs not knowing that they have to open the build space folder for rclrs in order to get types for whatever crate they're working on. This would be especially bad if they didn't download ROS 2 from source.

from ros2_rust.

gbiggs avatar gbiggs commented on May 26, 2024

This sounds like we should expect users to do with Cargo.toml what they have to do with CMakeLists.txt in a CMake or ament_cmake package: Include the message information in two places. It's as lovely a solution as it is in those other packages, but it seems it would solve the problem.

from ros2_rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.