Crate features / event-listener
Feature flags · event-listener 5.4.2 · from crates.io 2026-10-24
event-listener features: what each one does, and the line to copy
Short answerevent-listener 5.4.2 has 3 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.60 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
loom | parking?/loom, dep:loom | |
portable-atomic | portable-atomic-util, portable_atomic_crate | |
std | yes | parking |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version event-listener declares (rust-version), and the release that changed it:
- 2.5.2 (2022-01-22): Rust 1.36
- 3.0.0 (2023-09-10): Rust 1.59
- 4.0.1 (2023-12-19): Rust 1.61
- 4.0.3 (2024-01-06): Rust 1.60
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p event-listener --precise <version>, or use resolver 3, which picks compatible versions for you.
More on event-listener
Real downloads, dependents and alternatives: event-listener crate data (1.5M real downloads a day, 237 dependents).
Security record: event-listener advisories.
docs.rs feature list · crates.io · license Apache-2.0 OR MIT · edition 2021
Up next
Before you depend on itevent-listener crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?