Skip to content

Commit

Permalink
docs: added rustdocflags line to match perseus new output (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngterry authored Aug 20, 2024
1 parent 5acfa9d commit e46987b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/0.4.x/en-US/first-app/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This will create a new directory called `my-app/` that's equipped for a binary p
```toml
[build]
rustflags = [ "--cfg", "engine" ]
rustdocflags = [ "--cfg", "engine" ]
```

This will make sure your IDE builds your app correctly. Without this, you'll have red squiggly lines all over the place, because Perseus needs to be explicitly told if it's working on the engine-side (e.g. a server) or the browser-side, which are very different environments! Also, setting things up explicitly like this lets you change `engine` to `client` in that file when you want your IDE to help you out with working on browser-only code.
Expand Down

0 comments on commit e46987b

Please sign in to comment.