Cargo Features

[dependencies]
server-sent_events = { version = "0.4.0", default-features = false, features = ["std", "alloc", "stream", "http", "mime"] }
default = std, stream

These default features are set whenever server-sent_events is added without default-features = false somewhere in the dependency tree.

std default = alloc

Affects utils::content_type_is_sse, utils::get_last_event_id

alloc std stream

Affects server-sent_events::event

stream default = alloc, async-interval, futures-stream-select-ext, futures-util

Affects server-sent_events::stream

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.

http implicit feature

Enables http ^0.2

http:

A set of types for representing HTTP requests and responses

Affects utils::content_type_is_sse, utils::get_last_event_id

mime implicit feature

Enables mime

mime:

Strongly Typed Mimes

futures-util stream
futures-stream-select-ext stream
async-interval stream