Cargo Features
[dependencies]
crossterm = { version = "0.29.0", default-features = false, features = ["bracketed-paste", "events", "windows", "event-stream", "serde", "use-dev-tty", "derive-more", "osc52", "libc"] }
- default = bracketed-paste, derive-more, events, windows
-
These default features are set whenever
crosstermis added withoutsomewhere in the dependency tree.default-features = false - bracketed-paste default
-
Default features
Enables triggering
Event::Pastewhen pasting text into the terminal.Affects
event::EnableBracketedPaste,event::DisableBracketedPaste… - events default event-stream?
-
Enables reading input/events from the system using the
eventmodule.Enables mio, signal-hook ^0.3.17, and signal-hook-mio ^0.2.4
Affects
event::EnableMouseCapture,crossterm::event,unix::supports_keyboard_enhancement,unix::query_keyboard_enhancement_flags,windows::supports_keyboard_enhancement… - windows default
-
Enables windows specific crates.
Enables crossterm_winapi and winapi
- event-stream = events
-
Optional Features
Enables the EventStream struct for async event reading.
Enables futures-core
- serde
-
Enables
serdefor various types. - use-dev-tty = filedescriptor
-
Enables raw file descriptor polling / selecting instead of mio.
- derive-more default
-
Enables
is_*helper functions for event enums.Enables derive_more
- osc52
-
Enables interacting with a host clipboard via
clipboardEnables base64
Affects
crossterm::clipboard…
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- libc unix implicit feature
-
Enables libc
libc:
Raw FFI bindings to platform libraries like libc
Affects
file_descriptor::FileDesc,file_descriptor::tty_fd… - filedescriptor unix use-dev-tty?