Skip to content

Commit 011759c

Browse files
authored
Quickstart Rust issue (#1554)
* init * cont * minor fixes * minor fix * minor fix
1 parent b1f2731 commit 011759c

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

components/Starknet/modules/quick-start/pages/troubleshooting.adoc

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ source ~/.bashrc
3838

3939
== Declaring, deploying, and interacting with HelloStarknet locally
4040

41+
=== `scarb build` fails to run version command for Rust
42+
43+
Starting from Scarb version 2.10 and Starknet Foundry version 0.37.0, Rust is longer required for projects with the following line in their `Scarb.toml` file:
44+
45+
[source,cairo]
46+
----
47+
[tool.scarb]
48+
allow-prebuilt-plugins = ["snforge_std"]
49+
----
50+
51+
If not all three conditions are met and Rust is not installed, running `scarb build` (and `scarb test`) will result in a compilation error. To resolve this, either update Scarb, Starknet Foundry, and your `Scarb.toml` file accordingly or https://www.rust-lang.org/tools/install[install Rust^].
52+
4153
=== `starkli declare` unable to identify compiler version
4254

4355
When using `starkli declare`, Starkli will do its best to identify the compiler version of the declared class. In case it fails, the `--compiler-version` flag can be used to specify the version of the compiler.
@@ -100,8 +112,6 @@ and entering the private key of your smart wallet, along with a password that wi
100112
----
101113
starkli account fetch \
102114
<SMART_WALLET_ADDRESS> \
103-
--output account.json
115+
--output account.json \
104116
--network=sepolia
105117
----
106-
107-

0 commit comments

Comments
 (0)