Cargo Features

[dependencies]
routrs = { version = "2.0.0", default-features = false, features = ["all", "core", "highways", "maritime", "railways", "json", "concurrency"] }
default = core

The core feature is set by default whenever routrs is added without default-features = false somewhere in the dependency tree.

all = concurrency, highways, json, maritime, railways
core default
highways all? = flate2, json, lazy_static, routrs_highways_dataset

Affects routrs::highways

maritime all? = flate2, json, lazy_static, routrs_maritime_dataset

Affects routrs::maritime

railways all? = flate2, json, lazy_static, routrs_railways_dataset

Affects routrs::railways

json all? highways? maritime? railways? = serde, serde_json

Affects routrs::json

concurrency all? = rayon

Affects routrs::concurrency

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.

flate2 highways? maritime? railways?
lazy_static highways? maritime? railways?
rayon concurrency?
serde json?
serde_json json?
routrs_maritime_dataset maritime?
routrs_highways_dataset highways?
routrs_railways_dataset railways?