simplify getting started (#782)

This commit is contained in:
Louis Fortier-Dubois 2023-09-07 14:57:32 -04:00 committed by GitHub
parent 27952b1f47
commit d249d24c07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 15 deletions

View File

@ -20,27 +20,19 @@ Cargo, which was installed with Rust. In the directory of your choice, run
cargo new my_burn_app
```
This will create the `my_burn_app` project directory. Head inside and open the `Cargo.toml` file. It
should contain something like:
This will create the `my_burn_app` project directory. Head inside with
```toml
[package]
name = "my_burn_app"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
```console
cd my_burn_app
```
Under dependencies, add
then add the dependency with
```toml
burn = { version = "0.9.0", features = ["wgpu"] }
```console
cargo add burn --features wgpu
```
Then, to compile the dependencies, execute
and compile it by executing
```console
cargo build