Rename crate to escpos-vfd and add tokio support
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.
This commit is contained in:
+31
-3
@@ -1,9 +1,37 @@
|
||||
[package]
|
||||
name = "m"
|
||||
version = "0.1.0"
|
||||
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"
|
||||
anyhow = "1"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user