# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "qrcode-rs"
version = "0.4.0"
authors = ["houseme <housemecn@gmail.com>"]
build = false
exclude = [
    "tests/*",
    ".gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "QR code encoder in Rust，Generate QR Code matrices and images in RAW, PNG and SVG formats."
homepage = "https://houseme.github.io/qrcode-rs"
documentation = "https://docs.rs/qrcode-rs/"
readme = "README.md"
keywords = [
    "qrcode",
    "generate",
    "encoder",
    "image",
    "barcode",
]
categories = [
    "encoding",
    "multimedia::images",
    "multimedia::encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/houseme/qrcode-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
cli = [
    "dep:clap",
    "image",
    "svg",
    "eps",
    "pic",
    "html",
    "pdf",
]
default = [
    "image",
    "svg",
    "pic",
    "eps",
    "html",
    "pdf",
]
eps = []
html = []
image = [
    "dep:image",
    "image/png",
]
pdf = []
pic = []
svg = []

[lib]
name = "qrcode_rs"
path = "src/lib.rs"

[[bin]]
name = "qrencodes"
path = "src/bin/qrencodes.rs"
required-features = ["cli"]

[[example]]
name = "cli_tool"
path = "examples/cli_tool.rs"
required-features = ["cli"]

[[example]]
name = "custom_colors"
path = "examples/custom_colors.rs"
required-features = ["image"]

[[example]]
name = "encode_eci"
path = "examples/encode_eci.rs"

[[example]]
name = "encode_eps"
path = "examples/encode_eps.rs"
required-features = ["eps"]

[[example]]
name = "encode_fnc1"
path = "examples/encode_fnc1.rs"

[[example]]
name = "encode_html"
path = "examples/encode_html.rs"
required-features = ["html"]

[[example]]
name = "encode_image"
path = "examples/encode_image.rs"
required-features = ["image"]

[[example]]
name = "encode_kanji"
path = "examples/encode_kanji.rs"

[[example]]
name = "encode_pic"
path = "examples/encode_pic.rs"
required-features = ["pic"]

[[example]]
name = "encode_string"
path = "examples/encode_string.rs"

[[example]]
name = "encode_svg"
path = "examples/encode_svg.rs"
required-features = ["svg"]

[[example]]
name = "encode_unicode"
path = "examples/encode_unicode.rs"

[[example]]
name = "error_handling"
path = "examples/error_handling.rs"

[[example]]
name = "structured_append"
path = "examples/structured_append.rs"

[dependencies.clap]
version = "4.5"
features = [
    "std",
    "derive",
    "help",
    "usage",
    "error-context",
    "suggestions",
]
optional = true
default-features = false

[dependencies.image]
version = "0.25.10"
optional = true
default-features = false

[dev-dependencies.image]
version = "0.25.10"

[profile.release]
opt-level = 3
debug = 0
