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

run/build integration example for wasm #740

Closed
whiterabbit42k opened this issue Feb 18, 2021 · 3 comments
Closed

run/build integration example for wasm #740

whiterabbit42k opened this issue Feb 18, 2021 · 3 comments

Comments

@whiterabbit42k
Copy link

I'm not sure how to build iced when using it in "integration" mode, e.g., similar to how the integration example works.

There's a number of problems just when targetting e.g., wasm32-unknown-unknown, mostly related to deps using memmap2, which are as i understand it:

  1. fontdb (optional)
  2. usvg (optional)
  3. smithay-client-toolkit (required)

so i think smithay-client-toolkit is the failing link here, at least from compile perspective.

Assuming these issues can be resolved, is there any other guidelines for how to accomplish this? it seems a reasonable usecase, since wgpu itself can target wasm32 without much issue?

@hecrj
Copy link
Member

hecrj commented Feb 27, 2021

The integration example does not run on web, as it uses iced_native directly and not iced_web.

The ECOSYSTEM guide may be helpful to understand how everything is tied together.

@hecrj hecrj added the question Further information is requested label Feb 27, 2021
@whiterabbit42k
Copy link
Author

yes but wgpu can target web (i'm suggesting what does a user do if they want to target wasm32-unknown-unknown for e.g., the experimental webgpu web api for wgpu and also used iced?). as i can see the list i gave above are the current blockers for why iced won't even compile with that target when using iced_native.

do you see what i mean?

basically if using iced native and targeting wasm32, this should be possible

@hecrj hecrj added rendering shell web wgpu and removed question Further information is requested labels Jan 20, 2022
@hecrj
Copy link
Member

hecrj commented Jan 31, 2022

Fixed by #1096!

@hecrj hecrj closed this as completed Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants