File tree 3 files changed +6
-5
lines changed
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!
94
94
95
95
## Macro expansion
96
96
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
100
100
[ rustaceanvim] ( https://github.com/mrcjkb/rustaceanvim ) plugin. You can also use ` cargo expand ` tool
101
101
from CLI, like this:
102
102
Original file line number Diff line number Diff line change 1
1
{
2
2
"contract-creation" : " Contract creation" ,
3
+ "entry-points" : " Entry points" ,
3
4
"first-messages" : " First messages"
4
5
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ cargo generate CosmWasm/sylvia-template
16
16
17
17
The [ ` sylvia-template ` ] ( https://github.com/CosmWasm/sylvia-template ) will generate a lot of code for
18
18
you. 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 .
20
20
21
21
## New project
22
22
@@ -48,7 +48,7 @@ sylvia = "1.3.1"
48
48
[ documentation] ( https://docs.rs/sylvia/latest/sylvia/#reexports ) .
49
49
</Callout >
50
50
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
52
52
[ ` cdylib ` ] ( https://doc.rust-lang.org/reference/linkage.html ) is required to create a proper web
53
53
assembly binary. The downside of this is that such a library cannot be used as a dependency for
54
54
other 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