[package] edition = "2021" name = "winprint" version = "0.2.0" authors = ["ArcticLampyrid "] keywords = ["printer", "printing", "xps", "pdf"] categories = ["api-bindings", "os::windows-apis"] description = "A crate for printing to a Windows printer device using Windows API" license = "BSD-3-Clause" readme = "README.md" documentation = "https://docs.rs/winprint" repository = "https://github.com/ArcticLampyrid/winprint.rs/" [dependencies] scopeguard = "1.2" sha2 = { version = "0.10", optional = true } bs58 = { version = "0.5", optional = true } strum = { version = "0.26", features = ["derive"] } thiserror = "1.0" fmt-derive = "0.1" xml = "0.8" windows-core = "0.58" [dependencies.windows] version = "0.58" features = [ "implement", "Data_Pdf", "Storage", "Storage_Streams", "Win32_Foundation", "Win32_Globalization", "Win32_Graphics_Direct2D", "Win32_Graphics_Direct2D_Common", "Win32_Graphics_Direct3D", "Win32_Graphics_Direct3D11", "Win32_Graphics_Dxgi", "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Gdi", "Win32_Graphics_Imaging", "Win32_Graphics_Imaging_D2D", "Win32_Graphics_Printing", "Win32_Graphics_Printing_PrintTicket", "Win32_Security", "Win32_Storage_Xps_Printing", "Win32_System_Com", "Win32_System_Ole", "Win32_System_Threading", "Win32_System_Variant", "Win32_System_WinRT_Pdf", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging", ] [build-dependencies] reqwest = { version = "0.12", features = ["blocking"] } flate2 = "1.0" tar = "0.4" [dev-dependencies] ctor = "0.2" env_logger = "0.11" winprint = { path = ".", features = ["test-utils"], default-features = false } [features] default = ["pdfium"] pdfium = [] test-utils = ["dep:sha2", "dep:bs58"] [package.metadata.docs.rs] all-features = true targets = ["x86_64-pc-windows-msvc"]