Skip to content

Commit 8cfaaaf

Browse files
committed
fix: suppress deprecated warnings at internal ros2dds call sites
-D deprecated (implied by -D warnings) turns the #[deprecated] on KeyExprFormat::Ros2Dds into a compile error everywhere the variant is matched internally. Add #![allow(deprecated)] to each file that uses Ros2Dds within our own codebase so external users still get the deprecation notice while the codebase itself compiles cleanly.
1 parent 5e916d5 commit 8cfaaaf

11 files changed

Lines changed: 22 additions & 0 deletions

File tree

crates/hiroz-console/src/app/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//!
33
//! This module contains the App struct and all TUI-related functionality,
44
//! split into submodules:
5+
6+
#![allow(deprecated)]
57
//! - `state`: Types, enums, and constants
68
//! - `render`: UI rendering methods
79
//! - `input`: Filter and input handling

crates/hiroz-console/src/core/engine.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
use std::{
24
collections::HashMap,
35
sync::{

crates/hiroz-console/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
use std::{sync::Arc, time::Duration};
24

35
mod app;

crates/hiroz-protocol/src/format/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
//! This module provides the [`KeyExprFormatter`] trait and concrete implementations
44
//! for different key expression formats.
55
6+
#![allow(deprecated)]
7+
68
#[cfg(feature = "rmw-zenoh")]
79
pub mod rmw_zenoh;
810

crates/hiroz-tests/tests/dds_interop.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//!
33
//! These tests verify that hiroz can communicate with standard ROS 2 nodes
44
//! using DDS (CycloneDDS) via zenoh-bridge-ros2dds.
5+
6+
#![allow(deprecated)]
57
//!
68
//! Architecture:
79
//! ```

crates/hiroz/examples/z_pubsub.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
use std::time::Duration;
24

35
use clap::{Parser, ValueEnum};

crates/hiroz/examples/z_pubsub_ros2dds.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
//! This example demonstrates hiroz pub/sub using the ros2dds backend,
44
//! which is compatible with zenoh-plugin-ros2dds for interoperability
55
//! with standard ROS 2 nodes.
6+
7+
#![allow(deprecated)]
68
//!
79
//! # Usage
810
//!

crates/hiroz/examples/z_srvcli.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
#[cfg(not(test))]
24
use clap::{Parser, ValueEnum};
35
use hiroz::{

crates/hiroz/examples/z_srvcli_ros2dds.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
//! This example demonstrates hiroz service communication using the ros2dds backend,
44
//! which is compatible with zenoh-bridge-ros2dds for interoperability
55
//! with standard ROS 2 service nodes.
6+
7+
#![allow(deprecated)]
68
//!
79
//! # Usage
810
//!

crates/hiroz/src/graph.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
use parking_lot::Mutex;
24
use serde::Serialize;
35
use slab::Slab;

0 commit comments

Comments
 (0)