Skip to content

Commit

Permalink
Revise per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jessiemongeon1 committed Sep 11, 2024
1 parent 3f9e19b commit b01cfab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 32 deletions.
32 changes: 16 additions & 16 deletions docs/developer-docs/getting-started/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,6 @@ Download and install the latest version of [dfx](install/index.mdx). `dfx` is a
sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
```

### Install Rust

To compile and deploy projects, `dfx` uses Rust on the backend. You will need to install Rust in your environment with the command:

```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

### Install `wasm32-unknown-unknown` target

ICP smart contracts are compiled into WebAssembly modules. To support this compilation, install the `wasm32-unknown-unknown` target:

```
rustup target add wasm32-unknown-unknown
```

### Install [Node.js](https://nodejs.org/en/download)

```bash
Expand Down Expand Up @@ -198,6 +182,22 @@ actor {

<TabItem value="rust" label="Rust">

### Install Rust

You will need to install Rust in your environment with the command:

```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

### Install `wasm32-unknown-unknown` target

ICP smart contracts are compiled into WebAssembly modules. To support this compilation, install the `wasm32-unknown-unknown` target:

```
rustup target add wasm32-unknown-unknown
```

This Rust smart contract has a single function called greet. It is marked as query because it doesn't modify the state of the canister.

The function accepts a name as input and returns a greetings text.
Expand Down
16 changes: 0 additions & 16 deletions docs/tutorials/developer-journey/level-0/03-dev-env.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,6 @@ The IC SDK is composed of several components that are required for developing on
- `moc`: The Motoko runtime compiler.
- `replica`: The Internet Computer's local network binary.

### Install Rust

To compile and deploy projects, `dfx` uses Rust on the backend. You will need to install Rust in your environment with the command:

```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

### Install `wasm32-unknown-unknown` target

ICP smart contracts are compiled into WebAssembly modules. To support this compilation, install the `wasm32-unknown-unknown` target:

```
rustup target add wasm32-unknown-unknown
```

### Download and install a code editor

To write and edit code, you will need a code editor. macOS and Linux systems come with some basic editors, such as `vi` or `nano`, but these have very limited functionality and can be hard to use.
Expand Down

0 comments on commit b01cfab

Please sign in to comment.