Skip to content

Commit b861b4c

Browse files
committed
Fix some config.toml documentation
1 parent 3182f67 commit b861b4c

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/pages/sylvia/basics/generate-contract.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ way you want.
9191
- `src/multitest/` - module in which we define our tests. It's a good practice to separate the tests
9292
between files semantically.
9393
- `src/bin/schema.rs` - builds into a binary which generates the contract schema.
94-
- `.cargo/config` - exposes some aliases to make working with the project simpler.
94+
- `.cargo/config.toml` - exposes some aliases to make working with the project simpler.
9595
- `cargo wasm` - run `cargo build` with additional options to compile a proper _wasm_ binary.
96-
- `cargo wasm-debug` - same as `cargo wasm`, but without `--release` profile to provide more
97-
debugging symbols.
98-
- `cargo schema` - builds and runs the `src/schema.rs` for simpler schema generation.
96+
- `cargo wasm-debug` - same as `cargo wasm`, but without `--release` profile to speed up build
97+
times a lot and provide debugging symbols.
98+
- `cargo schema` - builds and runs the `src/bin/schema.rs` for simpler schema generation.

src/pages/tutorial/cw-contract/building-contract.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ wasm = "build --target wasm32-unknown-unknown --release"
3737
wasm-debug = "build --target wasm32-unknown-unknown"
3838
```
3939

40-
Now, building your Wasm binary is as easy as executing `cargo wasm`. We also added the additional
41-
`wasm-debug` command for rare cases when we want to build the wasm binary, including debug
42-
information.
40+
Now, building your Wasm binary is as easy as executing `cargo wasm`. We also added the `wasm-debug`
41+
command for faster test builds and rare cases when we want to include debug information in the Wasm.
4342

4443
## Checking contract validity
4544

src/pages/tutorial/cw-contract/good-practices.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,13 @@ I encourage you to go to the generated file to see what the schema looks like.
280280

281281
The problem is that, unfortunately, creating this binary makes our project fail to compile on the
282282
Wasm target - which is, in the end, the most important one. Fortunately, we don't need to build the
283-
schema binary for the Wasm target - let's align the `.cargo/config` file:
283+
schema binary for the Wasm target - let's align the `.cargo/config.toml` file:
284284

285285
```toml
286286
[alias]
287287
wasm = "build --target wasm32-unknown-unknown --release --lib"
288288
wasm-debug = "build --target wasm32-unknown-unknown --lib"
289-
schema = "run schema"
289+
schema = "run --bin schema"
290290
```
291291

292292
The `--lib` flag added to `wasm` cargo aliases tells the toolchain to build only the library

0 commit comments

Comments
 (0)