Skip to content

Commit fecafd8

Browse files
committed
Write docs on starknet-contract target
1 parent 28d9745 commit fecafd8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

website/pages/docs/_meta.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"reference": {
88
"title": "Reference"
99
},
10+
"starknet": {
11+
"title": "Starknet"
12+
},
1013
"extensions": {
1114
"title": "Extensions"
1215
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Starknet Contract Target
2+
3+
The `starknet-contract` target allows to build the package as a [Starknet Contract](https://docs.starknet.io/documentation/getting_started/intro/).
4+
It searches for all contract classes in the package, and builds a separate compiled JSON file each found class.
5+
Generated file will be named with following pattern: `[package name]_[contract name].json`.
6+
7+
To enable it for a package, write a following line in `Scarb.toml`:
8+
9+
```toml
10+
[[target.starknet-contract]]
11+
```
12+
13+
This target does not accept any configuration arguments beside ones [shared among all targets](../reference/targets).

0 commit comments

Comments
 (0)