From 53ef41aa3ddf1963da904f021fa35ab69714b280 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Fri, 7 Jan 2022 10:50:37 -0500 Subject: [PATCH] examples: simplfy running them by enabling features automatically --- Cargo.toml | 1 + README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e58d54825..0ef287057 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] } diff --git a/README.md b/README.md index 5dd759432..04d01dead 100644 --- a/README.md +++ b/README.md @@ -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...