Skip to content

Comments

Make gtk an optional feature#283

Merged
amrbashir merged 2 commits intotauri-apps:devfrom
slint-ui:no-gtk
Mar 22, 2025
Merged

Make gtk an optional feature#283
amrbashir merged 2 commits intotauri-apps:devfrom
slint-ui:no-gtk

Conversation

@ogoffart
Copy link
Contributor

@ogoffart ogoffart commented Mar 5, 2025

This helps projects that uses muda on platform other than Linux to not get the gtk dependencies in their Cargo.lock (and the security advisories that goes with it)

Fixes #282

@ogoffart
Copy link
Contributor Author

ogoffart commented Mar 5, 2025

(Note that this is actually a breaking change for it will break the Linux build if one did default-features=false)

Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, could you please add a change file in .changes directory? and update the Cargo features section in README.md?

Cargo.toml Outdated
default = ["libxdo"]
libxdo = ["dep:libxdo"]
default = ["libxdo", "gtk"]
libxdo = ["dep:libxdo", "gtk"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this can stay as is

Suggested change
libxdo = ["dep:libxdo", "gtk"]
libxdo = ["dep:libxdo"]

This helps projects that uses muda on platform other than Linux to not
get the gtk dependencies in their Cargo.lock (and the security
advisories that goes with it)

Fixes tauri-apps#282
This should be a minor since breaking changes are allowed in minor releases for 0.x versions

Co-authored-by: Amr Bashir <github@amrbashir.me>
@amrbashir amrbashir merged commit e19a6eb into tauri-apps:dev Mar 22, 2025
9 checks passed
@ogoffart
Copy link
Contributor Author

Thanks for merging.
Could we get a new release?

@amrbashir
Copy link
Member

amrbashir commented Jun 17, 2025

I wanted to make the transition to gtk4 in this release but with my lack of time and effort involved, I guess that is not possible.

That said, I plan to make a release this week, just need one more PR to merge IconMenuItem into MenuItem which should be fairly simple but I may skip that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make GTK an optional dependency

2 participants