Install the qrcode crate
masterAdd qrcode to your Cargo.toml dependencies. By default, it includes features for image generation via the image crate. If you only need to encode data and do not require image generation capabilities, you can disable default features to reduce dependencies.
# Standard installation with image generation support
[dependencies]
qrcode = "0.14.1"
# Minimal installation without image generation
[dependencies]
qrcode = { version = "0.14.1", default-features = false, features = ["std"] }