Cargo Features

[dependencies]
lex_sleuther = { version = "0.1.0", default-features = false, features = ["baked_model", "cli", "train"] }
default = cli

this line exists to make cargo run more ergonomic and not require --features

baked_model cli

Affects model::baked_model

cli default = anyhow, baked_model, chrono, clap, env_logger

Required by the binary

train = ndarray-linalg, rand

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.

ndarray-linalg train?

Enables ndarray-linalg

cli-only features

env_logger cli
rand train?
anyhow cli
chrono cli
clap cli