slint-ui/slint

Slint/Slint-build enables too much dependencies

Fermée

#11 554 ouverte le 28 avr. 2026

 (1 commentaire) (0 réaction) (0 personne assignée)Rust (881 forks)batch import
a:language-rustgood first issue

Métriques du dépôt

Stars
 (22 596 étoiles)
Métriques de merge PR
 (Merge moyen 4j 18h) (254 PRs mergées en 30 j)

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

Guide contributeur