From c5b35515cdfe7b9f5815f9279d8716a8531b91e9 Mon Sep 17 00:00:00 2001 From: mushonnip Date: Wed, 14 Aug 2024 19:31:21 +0700 Subject: [PATCH] update --- Cargo.toml | 14 ++++++++++---- src/lib.rs | 6 +++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a83df79..7e55e1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,15 +3,21 @@ name = "raw-printer" description = "Direct RAW printing on windows or linux" repository = "https://github.com/mushonnip/raw-printer" keywords = ["printer"] -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[dependencies] -windows = { version = "0.51.1", features = [ +[target.'cfg(windows)'.dependencies] +windows = { version = "0.58.0", features = [ "Win32_Foundation", "Win32_Graphics_Printing", "Win32_Graphics_Gdi", -] } +]} + +[profile.release] +opt-level = 3 +lto = true +codegen-units = 1 +strip = "symbols" \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 0d0ab45..a860580 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,7 +61,7 @@ pub fn write_to_device(printer: &str, payload: &str) -> Result Result