Cargo Features

R4d has no features set by default.

[dependencies]
r4d = { version = "3.1.0", features = ["basic", "full", "binary", "debug", "color", "hook", "signature", "wasm", "template"] }
basic binary? = clap

Binary related
For some reaons that I dont' know, clap cannot be enabled with dep: prefix

Enables filetime, binary of optional rad_ext_template

full binary? = chrono, cindex, evalexpr, textwrap
binary = basic, color, debug, full, signature
debug binary?

ETC

Enables crossterm ^0.20.0 and similar

Affects consts::DIFF_SOURCE_FILE, consts::DIFF_OUT_FILE, consts::RDB_HELP

color binary?

Enables atty and colored

atty:

Optioanl features

Affects consts::ColorDisplayFunc

hook

Affects map::hookmap

signature binary?

Enables serde_json

Affects common::SignatureType, map::sigmap

wasm

Enables console_error_panic_hook, wasm-bindgen, and wee_alloc

wasm-bindgen:

Wasm related dependencies

Affects r4d::wasm

template = rad_ext_template

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.

chrono full?
cindex full?
clap basic?

Enables clap ^3.0.3

evalexpr full?

Enables evalexpr ^6.4.0

rad_ext_template template?
textwrap full?

Enables textwrap ^0.14.2