Cargo Features

[dependencies]
img2text = { version = "0.2.0", default-features = false, features = ["bin"] }
default = bin

Enable the bin-only deps to facilitate cargo install, at cost of making it more tedious to use the package as a library. The following are the RFCs that will solve this problem:

bin default = anyhow, clap, console, env_logger, image, imageproc, log

bin-only deps

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.

env_logger bin

Enables env_logger ^0.8.1

imageproc bin

Enables imageproc ^0.23.0

TODO: imageproc currently compiles all algorithms. I hope they break them into features...

console bin

Enables console ^0.13.0

anyhow bin
clap bin

Enables clap ^3.2

log bin

Affects img2text::adjust_image_size_for_output_size_preserving_aspect_ratio

image bin

Enables image ^0.24.1