Cargo Features

[dependencies]
nexrad = { version = "1.0.0-rc.4", default-features = false, features = ["model", "decode", "data", "render", "process", "serde", "uom", "chrono", "parallel", "aws", "aws-polling", "wasm", "full"] }
default = full

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

model process? render? wasm?

Core crate features

Enables nexrad-model

Affects nexrad::extract_field, nexrad::extract_fields, nexrad::extract_first_field, nexrad::coordinate_system, nexrad::coordinate_system_required, nexrad::sites, nexrad::site, nexrad::nearest_site, nexrad::load, nexrad::load_file, nexrad::download, nexrad::download_latest, nexrad::download_at

decode wasm?

Enables nexrad-decode

data aws? wasm?

Enables nexrad-data

Affects nexrad::load, nexrad::load_file, nexrad::list_scans, nexrad::stream, nexrad::download, nexrad::download_latest, nexrad::download_at

render wasm? = model

Enables nexrad-render

process wasm? = model

Enables nexrad-process

serde wasm?

Pass-through features from sub-crates

Enables serde of optional nexrad-model

uom wasm?

Enables uom of optional nexrad-decode and optional nexrad-model

chrono aws? wasm?

Enables chrono, chrono of optional nexrad-model

parallel full

Enables parallel of optional nexrad-data

nexrad-data:

Parallel decompression and decoding using rayon

aws aws-polling? wasm? = chrono, data

Basic AWS S3 access (WASM-compatible)

Enables aws of optional nexrad-data

Affects nexrad::list_scans, nexrad::download, nexrad::download_latest, nexrad::download_at

aws-polling full = aws, tokio

Real-time polling functionality (requires tokio, not WASM-compatible)

Enables futures, aws-polling of optional nexrad-data

Affects nexrad::stream

wasm full = aws, chrono, data, decode, model, process, render, serde, uom

All WASM-compatible features

full default = aws-polling, parallel, wasm

Convenience feature for everything (includes native-only features, not WASM-compatible)

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.

tokio not wasm32 aws-polling?