You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 21, 2024. It is now read-only.
Copy file name to clipboardexpand all lines: docs/getting-started/setup.mdx
+32-3
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@ This page has been migrated to the Stellar Developers documentation. Please [cli
31
31
/>
32
32
</head>
33
33
34
+
importTabsfrom"@theme/Tabs";
35
+
importTabItemfrom"@theme/TabItem";
36
+
34
37
Soroban contracts are small programs written in the [Rust] programming language.
35
38
36
39
To build and develop contracts you need only a couple prerequisites:
@@ -41,13 +44,29 @@ To build and develop contracts you need only a couple prerequisites:
41
44
42
45
## Install Rust
43
46
47
+
### Linux, macOS, or other Unix-like OS
48
+
44
49
If you use macOS, Linux, or another Unix-like OS, the simplest method to install a Rust toolchain is to install `rustup`. Install `rustup` with the following command.
45
50
46
51
```bash
47
52
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
48
53
```
49
54
50
-
If you use Windows, or need an alternative method of installing Rust, check out: https://www.rust-lang.org/tools/install
55
+
### Windows
56
+
57
+
On Windows, download and run [rustup-init.exe](https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe). You can continue with the default settings by pressing Enter.
58
+
59
+
:::info
60
+
61
+
**Protip:** The soroban CLI uses emojis. To properly render them on Windows, we recommend using [Windows Terminal](https://learn.microsoft.com/en-us/windows/terminal/). See [how to install Windows Terminal](https://learn.microsoft.com/en-us/windows/terminal/install) on Microsoft Learn.
62
+
63
+
:::
64
+
65
+
If you're already using [WSL](https://learn.microsoft.com/en-us/windows/wsl/install), you can also follow the instructions for Linux.
66
+
67
+
### Other
68
+
69
+
For other methods of installing [Rust], check out: https://www.rust-lang.org/tools/install
51
70
52
71
## Install the target
53
72
@@ -130,7 +149,7 @@ TESTING_OPTIONS:
130
149
131
150
:::info
132
151
133
-
**Protip:** You can use `soroban completion` to generate shell completion for `bash`, `elvish`, `fish`, `powershell`, and `zsh`. You should absolutely try it out. It will feel like a super power!!
152
+
**Protip:** You can use `soroban completion` to generate shell completion for `bash`, `elvish`, `fish`, `powershell`, and `zsh`. You should absolutely try it out. It will feel like a super power!
134
153
135
154
To enable autocomplete in the current bash shell, run:
136
155
@@ -154,11 +173,21 @@ Soroban has a test network called Testnet that you can use to deploy and test yo
154
173
155
174
To configure your CLI to interact with Testnet, run the following command:
Note the `--global` flag. This creates a file in your home folder's `~/.config/soroban/network/testnet.toml` with the settings you specified. This means that you can use the `--network testnet` flag in any Soroban CLI command to use this network from any directory or filepath on your system.
0 commit comments