thermoprint 0.1.0

A fluent ESC/POS receipt builder for thermal printers. Targets native (Tauri/desktop) and WASM/npm.
Documentation
# 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 = "2021"
name = "thermoprint"
version = "0.1.0"
authors = ["Mamadou Sarr"]
build = false
exclude = [
    ".github",
    "tests",
    "Makefile",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fluent ESC/POS receipt builder for thermal printers. Targets native (Tauri/desktop) and WASM/npm."
homepage = "https://github.com/mouhamed1296/thermoprint"
documentation = "https://docs.rs/thermoprint"
readme = "README.md"
keywords = [
    "escpos",
    "thermal",
    "receipt",
    "printer",
    "wasm",
]
categories = [
    "hardware-support",
    "encoding",
    "wasm",
]
license = "MIT"
repository = "https://github.com/mouhamed1296/thermoprint"

[package.metadata.wasm-pack.package]
description = "Fluent ESC/POS receipt builder for thermal printers — WebUSB, WebSerial, Node.js"
homepage = "https://github.com/mouhamed1296/thermoprint"
keywords = [
    "escpos",
    "thermal",
    "receipt",
    "printer",
    "wasm",
]
license = "MIT"
name = "thermoprint"
repository = "https://github.com/mouhamed1296/thermoprint"

[package.metadata.wasm-pack.profile.release]
wasm-opt = [
    "-Oz",
    "--enable-mutable-globals",
]

[features]
default = ["native"]
native = ["dep:image"]
wasm = [
    "dep:wasm-bindgen",
    "dep:js-sys",
]

[lib]
name = "thermoprint"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
]
optional = true
default-features = false

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.rust_decimal]
version = "1"
features = [
    "serde",
    "macros",
]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.thiserror]
version = "1"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dev-dependencies.pretty_assertions]
version = "1"