You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not possible to point at just the top level rosrust directory, the individual packages need to be called out (or for that to work it has to be called out differently, how to distinguish between rosrust at the top level and the Cargo.toml one level down also called rosrust?).
Also, rosrust_msg depends on rosrust, but it doesn't take the one specified above, this results in an error
error[E0277]: the trait bound `rosrust_msg::rosgraph_msgs::Log: rosrust::Message` is not satisfied
--> src/loginfo/main.rs:8:5
|
8 | rosout_pub: ros::Publisher<Log>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `rosrust::Message` is not implemented for `rosrust_msg::rosgraph_msgs::Log`
|
::: /home/lucasw/own/src/rust/rosrust/rosrust/src/api/raii.rs:14:25
|
14 | pub struct Publisher<T: Message> {
| ------- required by this bound in `rosrust::Publisher`
error[E0277]: the trait bound `rosrust_msg::std_msgs::Float32: rosrust::Message` is not satisfied
--> src/loginfo/main.rs:9:5
|
9 | float_pub: ros::Publisher<Float32>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `rosrust::Message` is not implemented for `rosrust_msg::std_msgs::Float32`
|
::: /home/lucasw/own/src/rust/rosrust/rosrust/src/api/raii.rs:14:25
|
14 | pub struct Publisher<T: Message> {
| ------- required by this bound in `rosrust::Publisher`
error: aborting due to 2 previous errors
So have to fix the rosrust_msg dependency to depend on the local rosrust:
But accidentally checked in the relative path toml, which broke the github action later- how to use the local rosrust locally, but not touch the Cargo.toml that gets checked in? Probably can create a unchecked in Cargo.toml that points to the right places but is not the same as the git version, not even in the source tree.
Both rosrust and rosrust_msg are needed on separate lines, there isn't a way to tell Cargo to only use a path within the git repo. rust-lang/cargo#1462
So always have to push changes up to test, but that isn't a huge deal, that branch is flexible and any amount of junk commits and rebases are fine there.
Need to have dependencies like this
It's not possible to point at just the top level rosrust directory, the individual packages need to be called out (or for that to work it has to be called out differently, how to distinguish between
rosrust
at the top level and the Cargo.toml one level down also calledrosrust
?).Also, rosrust_msg depends on rosrust, but it doesn't take the one specified above, this results in an error
So have to fix the rosrust_msg dependency to depend on the local rosrust:
PR for above here adnanademovic/rosrust#153
The text was updated successfully, but these errors were encountered: