Skip to content

chore: drop the idle_callback feature flag - #1158

Open
kronberger-droid wants to merge 1 commit into
nushell:mainfrom
kronberger-droid:chore/drop-idle-callback-flag
Open

chore: drop the idle_callback feature flag#1158
kronberger-droid wants to merge 1 commit into
nushell:mainfrom
kronberger-droid:chore/drop-idle-callback-flag

Conversation

@kronberger-droid

Copy link
Copy Markdown
Collaborator

Summary

idle_callback gated an Option<Box<dyn FnMut>> field on Reedline, two is_some checks and the with_idle_callback builder.
No dependency behind it, not in the CI matrix (only --all-features touched it), no example, no nushell use.
A flag that toggles a public method is a papercut for docs.rs readers and buys nothing measurable, thus the gate is gone and with_idle_callback is always available.

Public API: with_idle_callback no longer needs a feature. Passing --features idle_callback now yields cargo's unknown-feature warning and nothing else.
No behavior change: polling only starts once a callback is set, same as before.

It gated an `Option` field and two `is_some` checks, no dependency,
and was not in the CI matrix. `with_idle_callback` is now always
available; `--features idle_callback` becomes a no-op cargo warning.
@fdncred

fdncred commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

I'm definitely good with less features.

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.

2 participants