slint-ui/slint

Slint/Slint-build enables too much dependencies

Open

#11554 opened on Apr 28, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (22,596 stars) (881 forks)batch import
a:language-rustgood first issue

Description

Bug Description

I'm trying to create a minimal Slint setup that compiles as fast as possible.

I noticed that the default Slint build enables almost all features of image-rs, which adds unnecessary overhead to both compile time and binary size.

Removing slint-build helps a lot, because this package pulls in the default image features.

This decreased size of Cargo.lock from 6250 lines to 5685

I think there should be a way to disable these features - I don’t need support for formats like QOI or GIF from image-rs.

It’s also possible that there are additional components that could be made optional, such as resvg, to further improve the build process.

Reproducible Code (if applicable)

Empty project with this Cargo.toml


[dependencies]
slint = "1.16.1"

[build-dependencies]
slint-build = "1.16.1"

Environment Details

  • Slint Version: 1.16
  • Platform/OS: Ubuntu 24.04
  • Programming Language: Rust
  • Backend/Renderer: N/A

Product Impact

No response

Contributor guide