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

Add a feature flag for derive_more impls #970

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

the-mikedavis
Copy link
Contributor

This adds a feature flag to allow opting out of the derive_more dependency and derivations added in #949.

Currently the flag is enabled by default as it sounds useful for out-of-the-box experience for ratatui users for example - I don't have strong opinions on its default state either way.

Copy link
Collaborator

@joshka joshka left a comment

Choose a reason for hiding this comment

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

I'd suggest adding a small note in the commit (for future readers) that the discussion of why this change was made is in the other PR and summarize the reason.

I'm fine with this change otherwise, but will defer to @TimonPost to merge.

This adds a feature flag to allow opting out of the `derive_more`
dependency and derivations added in e063091. `derive_more` brings in
heavy proc macro dependencies and isn't crucial for the core functioning
of crossterm, so it should be possible for a crossterm dependent to opt
out of bringing in the transitive dependency.
@TimonPost TimonPost merged commit 12f36ec into crossterm-rs:master Feb 16, 2025
6 checks passed
@the-mikedavis the-mikedavis deleted the derive-more-feature branch February 16, 2025 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants