Cargo Features

[dependencies]
mozjpeg-sys = { version = "2.1.0", default-features = false, features = ["parallel", "with_simd", "nasm_simd", "unwinding", "arith_dec", "arith_enc", "turbojpeg_api", "jpegtran", "jpeg70_abi", "jpeg80_abi", "nasm_simd_parallel_build"] }
default = nasm_simd, parallel, unwinding

If compiling for non-Intel platforms and nasm causes you grief, disable default features and use with_simd instead.

parallel build default nasm_simd_parallel_build?

May compile native dependencies quicker

Enables parallel of cc and optional nasm-rs

with_simd nasm_simd

Use SIMD-optimized assembly on ARM and other non-Intel platforms.

nasm_simd build default nasm_simd_parallel_build? = with_simd

nasm is required for x86, but not ARM

Enables nasm-rs

Affects mozjpeg-sys::DCTELEM

unwinding default

Allow libjpeg error handlers to panic

arith_dec jpeg70_abi?

Enable reading of JPEGs using arithmetic coding (these are rare)

arith_enc jpeg70_abi?

Enable creation of JPEGs using arithmetic coding (problematic compatibility)

turbojpeg_api = jpegtran

Enable alternative simpler C API

jpegtran turbojpeg_api?

Include code for jpegtran

jpeg70_abi jpeg80_abi? = arith_dec, arith_enc

Try to be binary-compatible with libjpeg v7 fork

Affects mozjpeg-sys::JPEG_LIB_VERSION, mozjpeg-sys::jpeg_compress_struct.do_fancy_downsampling, mozjpeg-sys::jpeg_calc_jpeg_dimensions

jpeg80_abi = jpeg70_abi

Try to be binary-compatible with libjpeg v8 fork

Affects mozjpeg-sys::JPEG_LIB_VERSION

nasm_simd_parallel_build = nasm_simd, parallel

Obsolete. Just use nasm_simd,parallel