Skip to content

fix: Replace deprecated PanicInfo usage in CLI tools with std::panic::set_hook #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Nawazz-ish opened this issue Feb 21, 2025 · 0 comments · May be fixed by #631
Open

fix: Replace deprecated PanicInfo usage in CLI tools with std::panic::set_hook #630

Nawazz-ish opened this issue Feb 21, 2025 · 0 comments · May be fixed by #631
Labels
bug Something isn't working

Comments

@Nawazz-ish
Copy link

Before posting the bug, take a look at the
FAQ
for a possible solution.

Required information

Operating system:
Darwin Nawazs-MacBook-Air.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:06 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8103 arm64

Rust version:
rustc 1.84.1 (e71f9a9a9 2025-01-27)

Cargo version:
cargo 1.84.1 (66221abde 2024-11-19)

iceoryx2 version:
main branch (working with current development version)

Detailed log output:
Not applicable for this issue as it's a build-time warning rather than a runtime issue. The warning appears during compilation and is related to deprecated type usage.

Observed result or behaviour:
During cargo build --release, the following deprecation warnings are observed in multiple CLI files:

warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead
  --> iceoryx2-cli/iox2/src/main.rs:31:9
   |
31 |         setup_panic!();
   |         ^^^^^^^^^^^^^^

**Expected result or behaviour:**
- Build process should complete without deprecation warnings
- System should handle panics appropriately in both debug and release modes
- Error messages should remain user-friendly and informative

**Conditions where it occurred / Performed steps:**
1. Clone repository:
```bash
git clone https://github.com/eclipse-iceoryx/iceoryx2.git
cd iceoryx2

Build project:
cargo build --release
@Nawazz-ish Nawazz-ish added the bug Something isn't working label Feb 21, 2025
Nawazz-ish added a commit to Nawazz-ish/iceoryx2 that referenced this issue Feb 22, 2025
Nawazz-ish added a commit to Nawazz-ish/iceoryx2 that referenced this issue Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant