This repository was archived by the owner on Dec 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ All contracts (1) passed checks!
9494
9595## Macro expansion
9696
97- In VSCode you can hover over a macro like [ ` #[contract] ` ] ( ../sylvia/macros/contract ) , do ` shift+p `
98- and then type: ` rust analyzer: Expand macro recursively ` . This will open a window with a fully
99- expanded macro, which you can browse. In Vim you can consider installing the
97+ In VSCode you can hover over a macro like [ ` #[contract] ` ] ( ../sylvia/macros/contract ) , press
98+ ` shift+p ` and then type: ` rust analyzer: Expand macro recursively ` . This will open a window with a
99+ fully expanded macro, which you can browse. In Vim you can consider installing the
100100[ rustaceanvim] ( https://github.com/mrcjkb/rustaceanvim ) plugin. You can also use ` cargo expand ` tool
101101from CLI, like this:
102102
Original file line number Diff line number Diff line change 11{
22 "contract-creation" : " Contract creation" ,
3+ "entry-points" : " Entry points" ,
34 "first-messages" : " First messages"
45}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ cargo generate CosmWasm/sylvia-template
1616
1717The [ ` sylvia-template ` ] ( https://github.com/CosmWasm/sylvia-template ) will generate a lot of code for
1818you. Because this tutorial aims to guide you step-by-step through the process of creating your first
19- contract we will omit the use of the template and show you how to create it from the start .
19+ contract we will omit the use of the template and show you how to create it from the scratch .
2020
2121## New project
2222
@@ -48,7 +48,7 @@ sylvia = "1.3.1"
4848 [ documentation] ( https://docs.rs/sylvia/latest/sylvia/#reexports ) .
4949</Callout >
5050
51- As you can see, I added a ` crate-type ` field for the library section. Generating the
51+ As you can see, we added a ` crate-type ` field for the library section. Generating the
5252[ ` cdylib ` ] ( https://doc.rust-lang.org/reference/linkage.html ) is required to create a proper web
5353assembly binary. The downside of this is that such a library cannot be used as a dependency for
5454other Rust crates - for now, it is not needed, but later we will show how to approach reusing
You can’t perform that action at this time.
0 commit comments