Merge pull request #89 from DioxusLabs/jk/simplify-example-run

examples: simplfy running them by enabling features automatically
This commit is contained in:
Jonathan Kelley 2022-01-07 12:05:33 -05:00 committed by GitHub
commit 8b6aa8b880
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -66,3 +66,4 @@ serde_json = "1.0.73"
rand = { version = "0.8.4", features = ["small_rng"] }
tokio = { version = "1.14.0", features = ["full"] }
reqwest = { version = "0.11.8", features = ["json"] }
dioxus = { path = ".", features = ["desktop", "ssr", "router"] }

View file

@ -81,10 +81,10 @@ If you know React, then you already know Dioxus.
### Examples
All examples in this repo are desktop apps. To run an example, simply clone this repo and use cargo with the `desktop` feature enabled. For SSR examples, you might need to enable SSR instead.
All examples in this repo are desktop apps. To run an example, simply clone this repo and use `cargo run --example XYZ`
```
cargo run --features desktop --example EXAMPLE
cargo run --example EXAMPLE
```
## Get Started with...