docs: update the docs

This commit is contained in:
Jonathan Kelley committed 2021-12-26 14:22:40 -05:00
1 parent c7d001cbb4
commit c0e0196a67
23 files changed
+536 -108

No files matched your search

+33
View File
@@ -1 +1,34 @@
# New app
To get started, let's create a new Rust project for our app.
```shell
$ cargo new --bin weatherapp
$ cd weatherapp
```
Make sure our project builds by default
```shell
$ cargo run
Compiling weatherapp v0.1.0
Finished dev [unoptimized + debuginfo] target(s) in 0.41s
Running `target/debug/weatherapp`
Hello, world!
```
## Adding Dioxus Desktop as a dependency
We can either edit our Cargo.toml directly:
```toml
[dependencies]
dioxus = { version = "*", features = ["desktop"]}
```
or use `cargo-edit` to add it via the CLI:
```shell
$ cargo add dioxus --features desktop
```