Add example readmes (#825)

This commit is contained in:
Jack May 2020-11-11 01:27:12 -08:00 committed by GitHub
parent 686c12984b
commit b2535d5b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 1 deletions

View File

@ -21,7 +21,7 @@ Full documentation is available at https://spl.solana.com
### Environment Setup
1. Install the latest Rust stable from https://rustup.rs/
2. Install Solana v1.4.6 or later from from https://docs.solana.com/cli/install-solana-cli-tools
2. Install Solana v1.4.6 or later from https://docs.solana.com/cli/install-solana-cli-tools
### Build

22
examples/c/README.md Normal file
View File

@ -0,0 +1,22 @@
# Program examples written in C
The examples in this directory demonstrate various Solana program mechanisms.
They are for code reference only and are not end-to-end working examples. The
current C test frameworks are very limited so not all functionality is fully
tested.
## Environment Setup
1. Install `make`
2. Install gcc
3. Install Solana v1.4.6 or later from
https://docs.solana.com/cli/install-solana-cli-tools
## Build and Test
To build the examples and run the tests:
```bash
$ make
```

11
examples/rust/README.md Normal file
View File

@ -0,0 +1,11 @@
# Program examples written in C
The examples in this directory demonstrate various Solana program mechanisms.
They are for code reference only and are not end-to-end examples that interact
with a live cluster.
## Build and Test
The root [README](../../README.md) gives instructions on how to build and test
these examples.