Skip to content

Commit

Permalink
Update README and fix build docs mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dahl committed Oct 13, 2024
1 parent 4cb5bd3 commit 5ecf4d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ What works?
Changelog
--------------------
#### [Unreleased]
- Fix cfg warnings <https://github.com/sequenceplanner/r2r/commit/4cb5bd362e81154924cc7dc21f8edbf470c4604a>
- More convinent one time parameter access <https://github.com/sequenceplanner/r2r/pull/107>

#### [0.9.1] - 2024-10-12
- Minor code fixes: <https://github.com/sequenceplanner/r2r/pull/105>, <https://github.com/sequenceplanner/r2r/pull/106>
Expand Down
4 changes: 4 additions & 0 deletions r2r_common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ pub fn print_cargo_ros_distro() {
}
}

#[cfg(feature = "doc-only")]
pub fn print_cargo_used_cfgs(_message_cfgs: &[&str]) {}

#[cfg(not(feature = "doc-only"))]
pub fn print_cargo_used_cfgs(message_cfgs: &[&str]) {
// Declare all supported ros distros as cfg directives for cargo
for d in SUPPORTED_ROS_DISTROS {
Expand Down
2 changes: 1 addition & 1 deletion r2r_rcl/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(improper_ctypes)]
#![allow(dead_code)]
// Silence "`extern` fn uses type `u128`, which is not FFI-safe"
// As of rustc 1.78, this has been fixed.
// It could be good to still warn if building with an older rust version.
#![allow(improper_ctypes)]
#![allow(improper_ctypes_definitions)]
include!(concat!(env!("OUT_DIR"), "/rcl_bindings.rs"));

use std::ffi::{CStr, CString};
Expand Down

0 comments on commit 5ecf4d9

Please sign in to comment.