Cargo Features

qr_code has no features set by default.

[dependencies]
qr_code = { version = "2.0.0", features = ["bmp", "decode", "fuzz"] }
bmp = bmp-monochrome

Affects qr_code::decode

decode = g2p

Affects qr_code::decode

fuzz = arbitrary

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

bmp-monochrome bmp?
g2p decode?

Enables g2p ^0.4

arbitrary fuzz?

Enables arbitrary ^0.4.7