diff --git a/build.rs b/build.rs index b532768..ac6f2f2 100644 --- a/build.rs +++ b/build.rs @@ -154,7 +154,11 @@ fn main() { let mut prefix = String::from(""); // Prefix symbols in Cyclone DDS and Cyclocut libraries to ensure uniqueness - #[cfg(all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64"), not(feature = "iceoryx")))] + #[cfg(all( + target_os = "linux", + any(target_arch = "x86", target_arch = "x86_64"), + not(feature = "iceoryx") + ))] { // Prefix = cyclors__ prefix = env::var("CARGO_PKG_VERSION").unwrap().replace('.', "_"); @@ -219,7 +223,11 @@ fn main() { .expect("Couldn't write bindings!"); } -#[cfg(all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64"), not(feature = "iceoryx")))] +#[cfg(all( + target_os = "linux", + any(target_arch = "x86", target_arch = "x86_64"), + not(feature = "iceoryx") +))] fn get_defined_symbols(lib_dir: &Path, lib_name: &str) -> Result, String> { let lib_path = lib_dir.to_path_buf().join(lib_name); @@ -255,7 +263,11 @@ fn get_defined_symbols(lib_dir: &Path, lib_name: &str) -> Result } } -#[cfg(all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64"), not(feature = "iceoryx")))] +#[cfg(all( + target_os = "linux", + any(target_arch = "x86", target_arch = "x86_64"), + not(feature = "iceoryx") +))] fn prefix_symbols( lib_dir: &Path, lib_name: &str,