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

Fix iced build when using vendored dependencies #1928

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

tarkah
Copy link
Member

@tarkah tarkah commented Jun 23, 2023

Iced can't be built as a vendored dependency (cargo vendor) since there is a cross crate include_bytes reference. This fixes that issue by duplicating the font file and making it accessible from each crate needing it.

This relates to iced-rs/winit#11 in my efforts to successfully build an iced app w/ Flatpak. Both of these patches unblock and I can get it successfully working. A new PR will be opened to update the winit dep once that is merged.

@mtkennerly
Copy link
Contributor

mtkennerly commented Jun 23, 2023

Out of curiosity, what's your Flatpak build definition? I haven't had any issues with this in Ludusavi (Flatpak: com.github.mtkennerly.ludusavi.yaml) - granted that I'm not using cargo vendor, but it wasn't necessary in my case.

@tarkah
Copy link
Member Author

tarkah commented Jun 23, 2023

Out of curiosity, what's your Flatpak build definition? I haven't had any issues with this in Ludusavi (Flatpak: com.github.mtkennerly.ludusavi.yaml) - granted that I'm not using cargo vendor, but it wasn't necessary in my case.

Looks like it's essentially the same. This issue however is from the recent refactor of all the iced crates. So if you're targeting 0.9 or earlier and not master, that's probably why it works for you.

@hecrj hecrj added the improvement An internal improvement label Jun 23, 2023
@hecrj hecrj added this to the 0.10.0 milestone Jun 23, 2023
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Thanks!

@hecrj hecrj merged commit 105e52a into iced-rs:master Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An internal improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants