Skip to content
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

Fix qos_net's CLI to build correctly without default features #504

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

r-n-o
Copy link
Contributor

@r-n-o r-n-o commented Feb 27, 2025

Summary & Motivation (Problem vs. Solution)

Discovered by @cr-tk in #502

This change introduces a no-op qos_net CLI when the default "proxy" feature isn't enabled. The CLI simply panics because there is nothing to do: the CLI is the way to start the proxy, and does not make sense without the proxy feature.

How I Tested These Changes

On this branch, cargo build --locked --no-default-features --release succeeds.

@r-n-o r-n-o requested a review from cr-tk February 27, 2025 19:00
@r-n-o r-n-o requested a review from a team as a code owner February 27, 2025 19:00
Copy link
Collaborator

@cr-tk cr-tk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks good to me, as previously discussed.

cargo run --no-default-features in qos_net does build and lead to the expected Cannot run qos_net CLI without proxy feature enabled panic behavior.

@cr-tk cr-tk added the bug Something isn't working label Feb 27, 2025
@r-n-o r-n-o merged commit dd7508b into main Feb 28, 2025
6 checks passed
@r-n-o r-n-o deleted the rno/fix-qos-net-cli branch February 28, 2025 16:18
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 this pull request may close these issues.

3 participants