Cargo Features

[dependencies]
gifski = { version = "1.32.0", default-features = false, features = ["binary", "capi", "png", "video", "video-static", "video-prebuilt-static", "gifsicle"] }
default = binary, gifsicle

cargo build will skip the binaries with missing required-features so all CLI dependencies have to be enabled by default.

binary default = pbr, png

You can disable this feture when using gifski as a library.

Enables clap, dunce, natord, wild, y4m, and yuv

Required by the binary

capi

internal for cargo-c only

png binary

Enables lodepng

Affects c_api::gifski_add_frame_png_file

video video-prebuilt-static? video-static?

Links dynamically to ffmpeg. Needs ffmpeg devel package installed on the system.

Enables ffmpeg-next ^6

video-static = video

Builds ffmpeg from source. Needs a C compiler, and all of ffmpeg's source dependencies.

Enables build of ffmpeg-next ^6

video-prebuilt-static = video

If you're lucky, this one might work with ffmpeg from vcpkg.

Enables static of ffmpeg-next ^6

gifsicle default

Support lossy LZW encoding when lower quality is set

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

pbr binary