escposify-rs
A ESC/POS driver for Rust
Most ESC/POS Printers will appear as a file. To print to the device, open a file to the location and pass this to the File::from
function.
To enable this in Windows, install the printer and its driver. Share the printer and specifiy a name for it (Receipt Printer in this case). The printer will then be accessable via \\%COMPUTERNAME%\Receipt Printer
.
To test this in the command line:
echo "Hello World" > testfile
copy testfile "\\%COMPUTERNAME%\Receipt Printer"
del testfile
Examples
Rust
See: simple.rs
extern crate escposify;
extern crate tempfile;
use Printer;
use File;
use ;