Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make gtk an optional feature #283

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

ogoffart
Copy link

@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
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>
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