[package]
edition = "2024"
rust-version = "1.99"
name = "thermark"
version = "0.36.1"
build = false
include = [
"/assets/**",
"/LICENSE-FONTS",
"/src/**",
"/benches/**",
"/examples/**",
"/tests/**",
"/fixtures/**",
"/docs/*.md",
"/scripts/*.py",
"/scripts/*.sh",
"/Cargo.toml",
"/Cargo.lock",
"/README.md",
"/CHANGELOG.md",
"/CONTRIBUTING.md",
"/AGENTS.md",
"/LICENSE",
"/rust-toolchain.toml",
"/local/README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Local sticker printing for pocket thermal printers over BLE/USB — QR links, inventory tags, badges, photos; no vendor app"
readme = "README.md"
keywords = [
"thermal",
"label",
"bluetooth",
"ble",
"printer",
]
categories = [
"hardware-support",
"command-line-utilities",
]
license = "MIT"
repository = "https://github.com/kahwee/thermark"
[package.metadata.docs.rs]
all-features = false
no-default-features = true
[features]
ble = [
"dep:btleplug",
"dep:futures",
"dep:uuid",
]
default = [
"ble",
"serial",
]
serial = [
"dep:serialport",
"dep:tokio-serial",
]
[lib]
name = "thermark"
path = "src/lib.rs"
[[bin]]
name = "thermark"
path = "src/main.rs"
[[example]]
name = "bulldozer"
path = "examples/bulldozer.rs"
[[example]]
name = "prepared_job"
path = "examples/prepared_job.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "fixtures_readme"
path = "tests/fixtures_readme.rs"
[[test]]
name = "golden"
path = "tests/golden.rs"
[[test]]
name = "label_placement"
path = "tests/label_placement.rs"
[[test]]
name = "packet_stream"
path = "tests/packet_stream.rs"
[[test]]
name = "protocol_integration"
path = "tests/protocol_integration.rs"
[[test]]
name = "protocol_replay"
path = "tests/protocol_replay.rs"
[[bench]]
name = "image_pipeline"
path = "benches/image_pipeline.rs"
harness = false
[[bench]]
name = "packet_decoder"
path = "benches/packet_decoder.rs"
harness = false
[dependencies.ab_glyph]
version = "0.2"
[dependencies.anyhow]
version = "1"
[dependencies.btleplug]
version = "0.13.5"
optional = true
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.csv]
version = "1"
[dependencies.directories]
version = "6"
[dependencies.futures]
version = "0.3"
optional = true
[dependencies.harfrust]
version = "0.15.0"
[dependencies.hex]
version = "0.4"
[dependencies.image]
version = "0.25"
features = [
"png",
"jpeg",
"gif",
"bmp",
"webp",
]
default-features = false
[dependencies.qrcode]
version = "0.14"
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serialport]
version = "4"
optional = true
default-features = false
[dependencies.sha2]
version = "0.11.1"
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"time",
"sync",
"signal",
"io-util",
]
[dependencies.tokio-serial]
version = "5"
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
]
[dependencies.unicode-bidi]
version = "0.3.18"
[dependencies.unicode-script]
version = "0.5.8"
[dependencies.unicode-segmentation]
version = "1.13.3"
[dependencies.uuid]
version = "1"
optional = true
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.quircs]
version = "0.10.3"
[dev-dependencies.tokio]
version = "1"
features = ["test-util"]
[lints.clippy]
manual_let_else = "warn"
redundant_clone = "warn"
unused_async = "warn"
[lints.rust]
unsafe_code = "forbid"
[lints.rustdoc]
broken_intra_doc_links = "deny"
[profile.release]
lto = true
codegen-units = 1
strip = "symbols"