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 cargo feature that enables piping on macos #7607

Closed
wants to merge 1 commit into from

Conversation

yyogo
Copy link
Contributor

@yyogo yyogo commented Jul 12, 2023

Follow up to #5468.

Since there have been understandable performance concerns around the tty polling implementation in the crossterm feature that enables piping on macos (crossterm-rs/crossterm#735), this PR adds a feature flag to selectively enable this, so that we can conditionally compile it only for macos targets.

@pascalkuthe
Copy link
Member

pascalkuthe commented Jul 12, 2023

I don't think a feature is the right way to handle this. On macos we likely never want to turn this off and requiring an extra argument to build on macos will be missed by many.

Since resolver version 2 you can use a target specific dependency to handle this:

[target.'cfg(target_os = "macos")'.dependencies]  
crossterm = { version = "0.26", features = ["use-dev-tty"] }

@pascalkuthe pascalkuthe added O-macos Operating system: macOS A-helix-term Area: Helix term improvements S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 12, 2023
@yyogo
Copy link
Contributor Author

yyogo commented Jul 12, 2023

@pascalkuthe totally missed that this was possible! will add this in a jiffy

@yyogo
Copy link
Contributor Author

yyogo commented Jul 12, 2023

Pushed to the original PR #5468

@yyogo yyogo closed this Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements O-macos Operating system: macOS S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants