Skip to content

Commit

Permalink
single-':' cargo syntax for compability with rust versions < 1.77
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dahl committed Nov 19, 2024
1 parent b1134a6 commit 74ad441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r2r_common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ 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
for d in SUPPORTED_ROS_DISTROS {
println!("cargo::rustc-check-cfg=cfg(r2r__ros__distro__{d})");
println!("cargo:rustc-check-cfg=cfg(r2r__ros__distro__{d})");
}

// additionally we have conditional tests and features based on some
// optional ros message packages.
for c in message_cfgs {
println!("cargo::rustc-check-cfg=cfg({c})");
println!("cargo:rustc-check-cfg=cfg({c})");
}
}

Expand Down

0 comments on commit 74ad441

Please sign in to comment.