slint-ui/slint

Slint/Slint-build enables too much dependencies

Open

#11,554 建立於 2026年4月28日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (22,596 star) (881 fork)batch import
a:language-rustgood first issue

描述

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

貢獻者指南