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

Document multi-target setup #263

Open
ealmloff opened this issue Apr 22, 2024 · 0 comments
Open

Document multi-target setup #263

ealmloff opened this issue Apr 22, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@ealmloff
Copy link
Member

As mentioned in DioxusLabs/dioxus#2291, we currently don't have great documentation about setting up a project that targets multiple platforms.

A multi platform setup can have one feature per platform:

dioxus = { version = "0.5" }

[features]
desktop = ["dioxus/desktop"]
liveview = ["dioxus/liveview"]
fullstack = ["dioxus/fullstack"]
server = ["dioxus/axum"]
web = ["dioxus/web"]

We should also document or link to documentation about several issues you are likely to run into with a multi target setup:

  • WASM tokio incompatibility
  • Wasm-bindgen desktop incompatibility
  • Setting up target specific features
@ealmloff ealmloff added documentation Improvements or additions to documentation good first issue Good for newcomers labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant