Update README and fix build docs mistake.
This commit is contained in:
parent
4cb5bd362e
commit
5ecf4d9123
|
|
@ -46,6 +46,8 @@ What works?
|
||||||
Changelog
|
Changelog
|
||||||
--------------------
|
--------------------
|
||||||
#### [Unreleased]
|
#### [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
|
#### [0.9.1] - 2024-10-12
|
||||||
- Minor code fixes: <https://github.com/sequenceplanner/r2r/pull/105>, <https://github.com/sequenceplanner/r2r/pull/106>
|
- Minor code fixes: <https://github.com/sequenceplanner/r2r/pull/105>, <https://github.com/sequenceplanner/r2r/pull/106>
|
||||||
|
|
|
||||||
|
|
@ -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]) {
|
pub fn print_cargo_used_cfgs(message_cfgs: &[&str]) {
|
||||||
// Declare all supported ros distros as cfg directives for cargo
|
// Declare all supported ros distros as cfg directives for cargo
|
||||||
for d in SUPPORTED_ROS_DISTROS {
|
for d in SUPPORTED_ROS_DISTROS {
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
#![allow(non_upper_case_globals)]
|
#![allow(non_upper_case_globals)]
|
||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types)]
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
#![allow(improper_ctypes)]
|
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
// Silence "`extern` fn uses type `u128`, which is not FFI-safe"
|
// Silence "`extern` fn uses type `u128`, which is not FFI-safe"
|
||||||
// As of rustc 1.78, this has been fixed.
|
// As of rustc 1.78, this has been fixed.
|
||||||
// It could be good to still warn if building with an older rust version.
|
// It could be good to still warn if building with an older rust version.
|
||||||
#![allow(improper_ctypes)]
|
#![allow(improper_ctypes)]
|
||||||
|
#![allow(improper_ctypes_definitions)]
|
||||||
include!(concat!(env!("OUT_DIR"), "/rcl_bindings.rs"));
|
include!(concat!(env!("OUT_DIR"), "/rcl_bindings.rs"));
|
||||||
|
|
||||||
use std::ffi::{CStr, CString};
|
use std::ffi::{CStr, CString};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue