Skip to content

feat!: reduce default feature dependents #3005

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

Merged
merged 4 commits into from
Dec 5, 2024
Merged

Conversation

dignifiedquire
Copy link
Contributor

@dignifiedquire dignifiedquire commented Dec 4, 2024

Description

  • remove relay/server default feature
  • set metrics feature as necessary

Breaking Changes

  • server is not a default feature in iroh-relay anymore

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

Copy link

github-actions bot commented Dec 4, 2024

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3005/docs/iroh/

Last updated: 2024-12-05T13:03:58Z

Copy link

github-actions bot commented Dec 4, 2024

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 1097e11

@dignifiedquire dignifiedquire changed the title feat: reduce default feature dependents feat!: reduce default feature dependents Dec 5, 2024
#![cfg_attr(
not(feature = "server"),
doc = "- `server`: A fully-fledged iroh-relay server over HTTP or HTTPS."
)]
Copy link
Contributor

Choose a reason for hiding this comment

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

😭

@@ -11,8 +11,16 @@
//! - [`protos::relay`]: The protocol used to communicate between relay servers and clients. It's a
//! revised version of the Designated Encrypted Relay for Packets (DERP) protocol written by
//! Tailscale.
//! - [`server`]: A fully-fledged iroh-relay server over HTTP or HTTPS. Optionally will also
//! expose a stun endpoint and metrics.
#![cfg_attr(
Copy link
Contributor

Choose a reason for hiding this comment

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

🙄 are we doing this all the time now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because folks like links, and this is the only way to make them dependent on feature flags

@dignifiedquire dignifiedquire added this pull request to the merge queue Dec 5, 2024
Merged via the queue into main with commit 321d8ff Dec 5, 2024
28 checks passed
@matheus23 matheus23 deleted the fix-feature-flags branch December 5, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants