Cargo Features
[dependencies]
javelin = { version = "0.3.7", default-features = false, features = ["tls", "hls", "web"] }
- default = hls, tls, web
-
These default features are set whenever
javelin
is added without
somewhere in the dependency tree.default-features = false - tls default = native-tls, tokio-tls
-
Affects
config::TlsConfig
,config::Config.tls
… - hls default web = javelin-codec, m3u8-rs, mpeg2ts, tempfile
-
Affects
config::HlsConfig
,config::Config.hls
,media::Receiver
,media::Sender
… - web default = hls, serde_json, warp
-
Affects
config::WebConfig
,config::Config.web
…
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.
- javelin-codec hls
- m3u8-rs hls
-
Enables m3u8-rs ^1.0
- mpeg2ts hls
-
Enables mpeg2ts ^0.1
- native-tls tls
- serde_json web
- tempfile hls
- tokio-tls tls
-
Enables tokio-tls ^0.2
- warp web
-
Enables warp ^0.1