slint-ui/slint

Slint/Slint-build enables too much dependencies

已关闭

#11,554 创建于 2026年4月28日

 (1 条评论) (0 个反应) (0 位负责人)Rust (881 个派生)batch import
a:language-rustgood first issue

仓库指标

星标
 (22,596 个星标)
PR 合并指标
 (平均合并 4天 18小时) (30 天内合并 254 个 PR)

描述

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

贡献者指南