Skip to content

Fix iced build when using vendored dependencies#1928

Merged
hecrj merged 1 commit intoiced-rs:masterfrom
tarkah:fix/vendored-build
Jun 23, 2023
Merged

Fix iced build when using vendored dependencies#1928
hecrj merged 1 commit intoiced-rs:masterfrom
tarkah:fix/vendored-build

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

Comments