-
Notifications
You must be signed in to change notification settings - Fork 170
feat: vendorize messages so that cargo update works #509
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
Changes from all commits
03352d0
c8aa3c4
8f564d6
d572918
f0749d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
//! | ||
//! ```no_run | ||
//! use rclrs::*; | ||
//! # use crate::rclrs::vendor::example_interfaces; | ||
//! | ||
//! let context = Context::default_from_env()?; | ||
//! let mut executor = context.create_basic_executor(); | ||
|
@@ -58,6 +59,7 @@ | |
//! # let context = Context::default_from_env()?; | ||
//! # let mut executor = context.create_basic_executor(); | ||
//! # let node = executor.create_node("example_node")?; | ||
//! # use crate::rclrs::vendor::example_interfaces; | ||
//! # | ||
//! // This worker will manage the data for us. | ||
//! // The worker's data is called its payload. | ||
|
@@ -97,6 +99,7 @@ | |
//! The following is a simple example of using a mandatory parameter: | ||
//! ```no_run | ||
//! use rclrs::*; | ||
//! # use crate::rclrs::vendor::example_interfaces; | ||
//! use std::sync::Arc; | ||
//! | ||
//! let mut executor = Context::default_from_env()?.create_basic_executor(); | ||
|
@@ -126,6 +129,7 @@ | |
//! | ||
//! ```no_run | ||
//! use rclrs::*; | ||
//! # use crate::rclrs::vendor::example_interfaces; | ||
//! use std::time::Duration; | ||
//! | ||
//! let mut executor = Context::default_from_env()?.create_basic_executor(); | ||
|
@@ -189,7 +193,7 @@ mod service; | |
mod subscription; | ||
mod time; | ||
mod time_source; | ||
mod vendor; | ||
pub mod vendor; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh this needs to be pub because doctest only links to public stuff... Jeez, I can see this causing some confusion. I think we need to re-evaluate our message consumption more and more everyday 😅 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, and I had to modify the vendorize script to not complain about missing docs for messages because now they are public 😅 |
||
mod wait_set; | ||
mod worker; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused about the leading
crate::
here since I thought doctests give a compilation error when you douse crate::
. But I guess if the tests are passing then 🤷There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we even need
crate::
. Locally, doctests seem to be passing with out it