Skip to content

Commit

Permalink
update build guides
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrchien committed Apr 20, 2022
1 parent 0ff7880 commit 29f8b1a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,29 @@ Realm can be run in a container with OCI (like Docker, Podman, Kubernetes, etc),

## Build Guides

Install rust toolchains with [rustup](https://rustup.rs/).
Install rust **nightly** toolchains with [rustup](https://rustup.rs/):

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

Clone this repository
Clone this repository:

```shell
git clone https://github.com/zhboner/realm
```

Enter the directory and build
Enter the directory and build:

```shell
cd realm
git submodule sync && git submodule update --init --recursive

# build release
cargo build --release

# allow more possible optimizations, make it even faster
RUSTFLAGS='-C target_cpu=native' cargo build --release
```

### Build Options
Expand Down

0 comments on commit 29f8b1a

Please sign in to comment.