# 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"
rust-version = "1.88"
name = "jbig2enc"
version = "0.1.1"
build = false
exclude = [
    "docs/**",
    "CLAUDE.md",
    ".github/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust reimplementation of jbig2enc, a JBIG2 encoder for bi-level images"
readme = "README.md"
keywords = [
    "jbig2",
    "compression",
    "image",
    "encoding",
    "pdf",
]
categories = [
    "compression",
    "encoding",
    "multimedia::images",
]
license = "Apache-2.0"
repository = "https://github.com/tagawa0525/jbig2enc-rs"

[features]
cli = ["dep:clap"]
default = ["cli"]

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

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

[[test]]
name = "arith_bitimage"
path = "tests/arith_bitimage.rs"

[[test]]
name = "arith_encoder_core"
path = "tests/arith_encoder_core.rs"

[[test]]
name = "arith_int_encode"
path = "tests/arith_int_encode.rs"

[[test]]
name = "auto_threshold"
path = "tests/auto_threshold.rs"

[[test]]
name = "cli"
path = "tests/cli.rs"

[[test]]
name = "comparator"
path = "tests/comparator.rs"

[[test]]
name = "encoder_generic"
path = "tests/encoder_generic.rs"

[[test]]
name = "multipage"
path = "tests/multipage.rs"

[[test]]
name = "symbol_dictionary"
path = "tests/symbol_dictionary.rs"

[[test]]
name = "text_region"
path = "tests/text_region.rs"

[[test]]
name = "wire_segment"
path = "tests/wire_segment.rs"

[[test]]
name = "wire_structs"
path = "tests/wire_structs.rs"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.leptonica]
version = "0.3.0"
