Rename crate to escpos-vfd and add tokio support Introduce a configurable crate-ready API with presets, typed errors, optional Tokio async support, and expanded documentation.
38 lines
1.1 KiB
TOML
38 lines
1.1 KiB
TOML
[package]
|
|
name = "escpos-vfd"
|
|
version = "0.2.0"
|
|
edition = "2024"
|
|
rust-version = "1.85"
|
|
description = "ESC/POS-compatible VFD customer display driver with sync and optional Tokio APIs"
|
|
license = "MIT OR Apache-2.0"
|
|
readme = "README.md"
|
|
repository = "https://git.belvedersky.ru/belvedersky/vfd.git"
|
|
documentation = "https://docs.rs/escpos-vfd"
|
|
categories = ["hardware-support", "api-bindings"]
|
|
keywords = ["vfd", "escpos", "serial", "customer-display", "tokio"]
|
|
publish = ["crates-io"]
|
|
exclude = [
|
|
"/docs/*.pdf",
|
|
"/taskfile.yml",
|
|
]
|
|
|
|
[dependencies]
|
|
serialport = "4"
|
|
encoding_rs = "0.8"
|
|
tokio = { version = "1", optional = true, default-features = false, features = ["io-util", "macros", "rt", "sync", "time"] }
|
|
tokio-serial = { version = "5.5.0", optional = true, default-features = false }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", default-features = false, features = ["io-util", "macros", "rt", "sync", "test-util", "time"] }
|
|
|
|
[features]
|
|
default = []
|
|
tokio = ["dep:tokio", "dep:tokio-serial"]
|
|
|
|
[[example]]
|
|
name = "tokio_worker"
|
|
required-features = ["tokio"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|