Comments (3)
rosrust_codegen
is a direct dependency of rosrust
. Its only responsibility is implementing the rosmsg_include!
macro, since it's a procedural macro, and procedural macros need to be implemented in a crate of their own.
Though I will consider updating the README, the new README will probably just be "procedural macros for rosrust".
Thanks for the concern!
from rosrust.
Since rosrust_codegen
is a procedural macro crate, consider:
- Moving the source code for
rosrust_codegen
to its own repo instead of including within therosrust
repo - Make it possible to use the
rosrust_codegen
withoutrosrust
. Currently attempting to do this (by forcing a dependency on just therosrust_codegen
directory) results in:
error[E0433]: failed to resolve: use of undeclared type or module `rosrust`
--> src/lib.rs:8:5
|
8 | rosmsg_include!(sensor_msgs/Image,sensor_msgs/Imu,geometry_msgs/TransformStamped);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `rosrust`
The functionality provided by rosrust_codegen
to generate rust types from ROS messages seems very useful on its own.
from rosrust.
Again, rosrust_codegen
is a key part of rosrust
and the only reason it's a separate crate is technical limitations of the crates system.
Depending on rosrust_codegen
alone does not make sense since the generated messages implement traits from rosrust
.
It's all similar to how serde
and serde_derive
interact.
from rosrust.
Related Issues (20)
- error: proc macro panicked HOT 2
- Use rosrust to connect on other machine
- rosrust_msg takes a lot of time on each cargo build while messages definitions have not changed HOT 1
- Derive Serde's Serialize and Deserialize for the generated message structs HOT 1
- Publish data to different computer HOT 1
- Upgrade nix to 0.25.1? HOT 1
- Synchronising multiple topics HOT 3
- subscribe_param HOT 2
- Shared memory accessible within multiple callback functions
- Using struct methods as callback for subscription HOT 1
- rust analyzer not showing completion for custom messages but shows it for "built-in" messages like std_msgs/Header HOT 2
- First publish of publisher_node is lost HOT 3
- Example will not compile: Could not find `std_msgs` in `rosrust_msg` HOT 1
- dynamic_reconfigure with rosrust
- consider moving on from `error_chain` HOT 1
- Could `Publisher` gain a `has_subscribers()` function
- Is the ctrl-c shutdown handler needed? HOT 2
- thread leaks when using rosrust::api::Ros::new HOT 1
- spin_once implementation in rosrust
- rosrust subscribes to the entire parameter tree (/)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rosrust.