#raster #print #image-processing #cups #async-io #urf #pwg

print_raster

A crate for processing print raster images in Rust

1 unstable release

0.1.0 Aug 13, 2024

#345 in Images

30 downloads per month

BSD-3-Clause

140KB
3.5K SLoC

print_raster

crates.io Released API docs BSD 3 Clause licensed

A crate for processing print raster images in Rust.

Supported Formats

  • URF (Apple Raster)
  • CUPS Raster V1
  • CUPS Raster V2, including PWG Raster (a subset of CUPS Raster V2)
  • CUPS Raster V3

Features

  • Fully Asynchronous I/O
  • Relatively low-level API

Development

You can run unit tests, integration tests, and documentation tests with the following command:

cargo test

For fuzz testing, it's a bit more complicated. You need to use the honggfuzz tool, which only works on a few platforms. See here to set it up.

After setting up honggfuzz, you can run a fuzz target:

cargo hfuzz run <fuzz_target>

Dependencies

~1–1.8MB
~35K SLoC