Cargo Features

[dependencies]
escpos = { version = "0.13.1", default-features = false, features = ["full", "barcodes", "codes_2d", "graphics", "hidapi", "serial_port", "usb", "native_usb"] }
default = barcodes, codes_2d

These default features are set whenever escpos is added without default-features = false somewhere in the dependency tree.

full = barcodes, codes_2d, graphics, hidapi, native_usb, serial_port, usb
barcodes default full?

Affects constants::GS_BARCODE_POSITION, constants::GS_BARCODE_FONT, constants::GS_BARCODE_HEIGHT, constants::GS_BARCODE_WIDTH, constants::GS_BARCODE_PRINT

codes_2d default full?

Affects constants::GS_2D, constants::GS_2D_QRCODE_MODEL, constants::GS_2D_QRCODE_SIZE, constants::GS_2D_QRCODE_CORRECTION_LEVEL, constants::GS_2D_QRCODE_PRINT_SYMBOL_DATA, constants::GS_2D_GS1_DATABAR_WIDTH, constants::GS_2D_GS1_DATABAR_WIDTH_EXTENDED, constants::GS_2D_GS1_DATABAR_PRINT, constants::GS_2D_PDF417_COLUMNS, constants::GS_2D_PDF417_ROWS, constants::GS_2D_PDF417_WIDTH, constants::GS_2D_PDF417_ROW_HEIGHT, constants::GS_2D_PDF417_CORRECTION_LEVEL, constants::GS_2D_PDF417_TYPE, constants::GS_2D_PDF417_PRINT, constants::GS_2D_MAXI_CODE_MODE

graphics full?

Enables image

Affects constants::GS_IMAGE_BITMAP_PREFIX, constants::GS_IMAGE_LOW_PREFIX, constants::GS_IMAGE_HIGH_PREFIX, constants::GS_IMAGE_DENSITY, constants::GS_IMAGE_PRINT

hidapi full?

Enables hidapi

Affects driver::HidApiDriver

serial_port full?

Enables serialport

Affects driver::SerialPortDriver

usb full?

Enables rusb

Affects driver::UsbDriver

native_usb full?

Enables futures-lite and nusb

Affects driver::NativeUsbDriver