Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
urani-engineering-helper committed Mar 27, 2024
1 parent c4bf00c commit 03ea84a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions demos/01_hello_world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
solana-test-validator
```

<br>

* Initialize a new Rust library via Cargo:

Expand All @@ -18,14 +19,19 @@ cd hello_world
cargo add solana-program
```

<br>

* This creates a very basic Solana Rust program following this layout:

```shell
-- src/
|__ lib.rs
-- Cargo.toml
.
├── Cargo.toml
└── src
└── lib.rs
```

<br>

* You should modify `Cargo.toml` to the following:

```
Expand Down Expand Up @@ -98,15 +104,18 @@ pub fn process_instruction(
cargo build-sbf
```

<br>

* This command will create the compiled program's `.so` file inside a folder called `./target/deploy`:

```
find . -name '*.so'
```

<br>

* Now, let's deploy it:

<br>

```
solana program deploy ./target/deploy/hello_world.so
Expand Down

0 comments on commit 03ea84a

Please sign in to comment.