Cargo Features
[dependencies]
hafas-rs = { version = "0.2.3", default-features = false, features = ["hyper-requester", "js-error", "js-fetch-requester", "rt-multi-thread", "wasm-bindings", "polylines", "db-profile", "vbb-profile", "oebb-profile", "nahsh-profile", "vvt-profile", "pkp-profile", "irish-rail-profile", "mobiliteit-lu-profile", "bart-profile", "dart-profile", "rmv-profile", "insa-profile", "cmta-profile", "sbahn-muenchen-profile", "saarvv-profile", "cfl-profile", "nvv-profile", "mobil-nrw-profile", "db-busradar-nrw-profile", "vsn-profile", "vgi-profile", "vbn-profile", "vrn-profile", "rsag-profile", "vmt-profile", "vos-profile", "avv-profile", "rejseplanen-profile", "ooevv-profile", "salzburg-profile", "verbundlinie-profile", "svv-profile", "vor-profile", "vkg-profile", "vvv-profile", "bls-profile", "zvv-profile", "all-profiles", "rest-server"] }
- default = all-profiles, hyper-requester, polylines
-
These default features are set whenever
hafas-rs
is added without
somewhere in the dependency tree.default-features = false - hyper-requester default rest-server? = hyper, hyper-rustls
-
Affects
requester::hyper
… - js-error js-fetch-requester? = wasm-bindgen
-
Affects
error::JsError
… - js-fetch-requester = js-error, wasm-bindgen-futures, web-sys
-
Affects
requester::js_fetch
… - rt-multi-thread rest-server?
- wasm-bindings = js-sys, wasm-bindgen-futures
-
Enables wasmbind of chrono, serde-serialize of wasm-bindgen
Affects
client::BoxedProfile
,client::BoxedRequester
… - polylines default = geojson, polyline
-
Affects
journeys::JourneysOptions.polylines
,refresh_journey::RefreshJourneyOptions.polylines
,common::CommonData.polylines
,leg::HafasLegJnyPolyG
,parse::polyline
,profile::Profile.parse_polyline
,types::Leg.polyline
… - db-profile all-profiles
-
Affects
profile::db
… - vbb-profile all-profiles
-
Affects
profile::vbb
… - oebb-profile all-profiles
-
Affects
profile::oebb
… - nahsh-profile all-profiles
-
Affects
profile::nahsh
… - vvt-profile all-profiles
-
Affects
profile::vvt
… - pkp-profile all-profiles
-
Affects
profile::pkp
… - irish-rail-profile all-profiles
-
Affects
profile::irish_rail
… - mobiliteit-lu-profile all-profiles
-
Affects
profile::mobiliteit_lu
… - bart-profile
-
Affects
profile::bart
… - dart-profile all-profiles
-
Affects
profile::dart
… - rmv-profile all-profiles
-
Affects
profile::rmv
… - insa-profile
-
Affects
profile::insa
… - cmta-profile all-profiles
-
Affects
profile::cmta
… - sbahn-muenchen-profile all-profiles
-
Affects
profile::sbahn_muenchen
… - saarvv-profile all-profiles
-
Affects
profile::saarvv
… - cfl-profile all-profiles
-
Affects
profile::cfl
… - nvv-profile all-profiles
-
Affects
profile::nvv
… - mobil-nrw-profile all-profiles
-
Affects
profile::mobil_nrw
… - db-busradar-nrw-profile
-
Affects
profile::db_busradar_nrw
… - vsn-profile all-profiles
-
Affects
profile::vsn
… - vgi-profile all-profiles
-
Affects
profile::vgi
… - vbn-profile all-profiles
-
Affects
profile::vbn
… - vrn-profile all-profiles
-
Affects
profile::vrn
… - rsag-profile all-profiles
-
Affects
profile::rsag
… - vmt-profile all-profiles
-
Affects
profile::vmt
… - vos-profile all-profiles
-
Affects
profile::vos
… - avv-profile all-profiles
-
Affects
profile::avv
… - rejseplanen-profile all-profiles
-
Affects
profile::rejseplanen
… - ooevv-profile all-profiles
-
Affects
profile::ooevv
… - salzburg-profile all-profiles
-
Affects
profile::salzburg
… - verbundlinie-profile all-profiles
-
Affects
profile::verbundlinie
… - svv-profile all-profiles
-
Affects
profile::svv
… - vor-profile all-profiles
-
Affects
profile::vor
… - vkg-profile all-profiles
-
Affects
profile::vkg
… - vvv-profile all-profiles
-
Affects
profile::vvv
… - bls-profile all-profiles
-
Affects
profile::bls
… - zvv-profile
-
Affects
profile::zvv
… - all-profiles default rest-server? = avv-profile, bls-profile, cfl-profile, cmta-profile, dart-profile, db-profile, irish-rail-profile, mobil-nrw-profile, mobiliteit-lu-profile, nahsh-profile, nvv-profile, oebb-profile, ooevv-profile, pkp-profile, rejseplanen-profile, rmv-profile, rsag-profile, saarvv-profile, salzburg-profile, sbahn-muenchen-profile, svv-profile, vbb-profile, vbn-profile, verbundlinie-profile, vgi-profile, vkg-profile, vmt-profile, vor-profile, vos-profile, vrn-profile, vsn-profile, vvt-profile, vvv-profile
-
ADD FEATURE HERE
APPEND FEATHRE HERE ] - rest-server = all-profiles, anyhow, env_logger, hyper, hyper-requester, rt-multi-thread, serde_urlencoded, tokio
-
Enables server of hyper ^0.14
Note: Version 1.0 is already available, but using it would duplicate this dependency with the old version. See https://github.com/rustls/hyper-rustls/issues/234
Required by the hafas-rest-server binary
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.
- hyper-rustls hyper-requester
-
Enables hyper-rustls ^0.24
- hyper hyper-requester rest-server?
-
Enables hyper ^0.14
- geojson polylines
- polyline polylines
-
Enables polyline ^0.10
- env_logger rest-server?
-
Enables env_logger ^0.10
- anyhow rest-server?
- tokio rest-server?
- serde_urlencoded rest-server?
- wasm-bindgen js-error? wasm-bindings?
- wasm-bindgen-futures js-fetch-requester? wasm-bindings?
- js-sys wasm-bindings?
- web-sys js-fetch-requester?